Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    47
    Plugin Contributions
    0

    Default "Call for shipping price" question

    In simplest terms I am setting up a shop where some products [A] are small (shipping easy to calculate) AND other products [B] are large/heavy (where automated shipping calculation is impossible - believe me). So what I need is when a customer adds ANY [B] product in their cart, the automatic shipping module (in my case Auspost) DOES NOT show and an option to "Contact for Price" is displayed. The way I have done the "contact for price" function is to use the maximum weight flag in the FREEOPTIONS module to 1000 and then set each [B] product to 1000 (modified the text of course). My dilemma is that this works perfectly for mixed orders [A + B] UNTIL you start modifying and deleting/adding products from the cart - even though the "new" total weight is now below or above the threshold (and is calculating and displaying properly) the shipping module filtering is no longer correct. I tried adding some if statements to the php code (I'm knowledgeable enough to do this) ie in freeoptions module
    if (MODULE_SHIPPING_AUSTPOST_STATUS == 'True') { $this->enabled = false; }

    and vice-versa, but I can't get a consistent shipping display under these "modified" shopping cart examples. It is almost like these module true/falsevariables are being cached/set at the first checkout display therefore corrupting subsequent returns to the code.........so does anyone:

    1. have a different working solution for this shipping problem?
    2. have any thoughts as to where I should start digging?

    Ta.

  2. #2
    Join Date
    Sep 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: "Call for shipping price" question

    I must admit I'm kinda surprised/disappointed that no-one on the forum seems to have any technical understanding of how these variables are being set/read. The forum was one of the main reasons I chose Zen Cart so that I hopefully wouldn't need to go through the code myself....sigh:

    Oh well, it doesn't look that complicated, just reverse engineering the paths and error-checking changes is the time-consuming part.

    Hopefully I've maybe just posted this question in the wrong section.....

  3. #3
    Join Date
    Sep 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: "Call for shipping price" question

    OK - it looks like the content for the shopping cart checkout module HTML is set the first time (into an array) the checkout code processes, subsequently it IS NOT being properly reset by the total cart weight option when products are then added or deleted. Bit of a missed error check I would have thought.

    So what I have done is when the code loops through the array I then additionally compare the module title (the text variables) with the cart weight (which does correctly update) and then choose whether to display modules based on this.

    This seems to work OK - however there are obviously other error checks required if I were to NOT use these specific modules. But I can't see any obvious flaws with this mod because:

    - I know the variables I'm comparing are there
    - I know that the modules are active

    Any one got any thoughts on other issues that I need to check?

 

 

Similar Threads

  1. v139h Question regarding "Contact Us" text on Call for Price
    By joealix in forum General Questions
    Replies: 9
    Last Post: 31 Mar 2016, 06:43 PM
  2. remove the border around "call for price" and reposition "ask us" button
    By b90702098 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 2 May 2012, 10:45 AM
  3. how to shows "call for price" and "add to cart"?
    By iofferfashion in forum Managing Customers and Orders
    Replies: 3
    Last Post: 15 Dec 2009, 04:46 AM
  4. Shipping: "Call for Price" if over $250
    By bamaster in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Jun 2008, 07:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR