Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Confused adding minimum order code in my cart.html. Can anyone help? Please

  1. #1
    Junior Member
    Join Date
    Oct 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Confused adding minimum order code in my cart.html. Can anyone help? Please

    I am trying to add code to set a minimum order when checking out prior to shipping.
    I can do it correctly on my test website since it uses bigcommerce shopping cart but the one I am trying to put code in on is a 3rd party one and not supportive of what I am doing.
    Where would I add the codes or what is the code I should be adding? Any help would be much appreciated.

    Here is what my cart.html without minimum code or message stating it has a minimum
    ---
    cart: true
    ---
    {{#partial "page"}}
    <div class="page">

    <main class="page-content" data-cart>
    {{> components/common/breadcrumbs breadcrumbs=breadcrumbs}}

    {{> components/cart/page-title}}

    <div data-cart-status>
    {{> components/cart/status-messages}}
    </div>

    {{#if cart.items.length}}
    <div class="loadingOverlay"></div>

    <div data-cart-content>
    {{> components/cart/content}}
    </div>

    <div data-cart-totals>
    {{> components/cart/totals}}
    </div>

    {{#if cart.show_primary_checkout_button}}
    <div class="cart-actions">
    <a class="button button--primary" href="{{urls.checkout.single_address}}" title="{{lang 'cart.checkout.title'}}">{{lang 'cart.checkout.button'}}</a>
    {{#if cart.show_multiple_address_shipping}}
    <a class="checkoutMultiple" href="{{urls.checkout.multiple_address}}">
    {{lang 'cart.preview.checkout_multiple'}}
    </a>
    {{/if}}
    </div>
    {{else}}
    <div class="cart-actions">
    <a class="button" href="{{urls.home}}" title="{{lang 'cart.continue_shopping'}}">{{lang 'cart.continue_shopping'}}</a>
    </div>
    {{/if}}

    {{#if cart.additional_checkout_buttons}}
    <div class="cart-additionalCheckoutButtons">
    {{#each cart.additional_checkout_buttons}}
    {{{this}}}
    {{/each}}
    </div>
    {{/if}}
    {{else}}
    <h3>{{lang 'cart.checkout.empty_cart'}}</h3>
    {{{ remote_api_scripts }}}
    {{/if}}

    {{{snippet 'cart'}}}
    </main>
    </div>
    {{/partial}}
    {{> layout/base}}
    Last edited by purehobby; October 14th, 2019 at 04:08 PM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,642
    Thanks
    53
    Thanked 2,417 Times in 2,370 Posts

    Default Re: Confused adding minimum order code in my cart.html. Can anyone help? Please

    Moved from java programming section.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Oct 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Confused adding minimum order code in my cart.html. Can anyone help? Please

    Sorry about that

Similar Threads

  1. Very Simple "Add to Cart/View Cart" Functionality
    By Deployment in forum Android Development
    Replies: 0
    Last Post: May 9th, 2018, 12:35 PM
  2. Whats wrong with my code? Why isn't my minimum working? Thanks.
    By judyfinny in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 28th, 2014, 07:06 PM
  3. Replies: 2
    Last Post: February 18th, 2014, 06:20 PM
  4. [SOLVED] Adding the "final" keyword makes difference, I'm confused with the sequence flow.
    By SmokyBrain in forum Object Oriented Programming
    Replies: 2
    Last Post: April 30th, 2012, 01:50 AM