Page 25 of 169 FirstFirst ... 1523242526273575125 ... LastLast
Results 241 to 250 of 1681
  1. #241
    Join Date
    Jul 2006
    Location
    St. Charles, MO
    Posts
    30
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    Chrome...
    Ok, I (me and another zenner) have come up with a possible idea of why it's not working in FF. Everything is fine in IE, however, with the new updated version of FF, the pricing is not showing on the ADD TO CART tab. Is it possible that the new version of FF is a related issue to this problem ?
    thanks,
    Paul

  2. #242
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: Dynamic Price Updater

    Quote Originally Posted by LTCreations View Post
    I've read all of the posts regarding the price updater and even installed the script. Although it's something long overdue in the cart, and something wonderfully oversimplified, there is a HUGE problem that is intrinsic with Zen-Cart that is still not addressed.

    The obnoxious "+" accompanied with the dollar figure is absolutely 'in the way' of the pricing. If there were a method to simply 'hide' the plus sign and the accompanying dollar amount that would make developers "and" customers happy.

    Here's the problem. Customer, like it or not, are not as computer savvy as we would like. They look at the numbers and the plus sign and get confused. Look at http://www.peninsulaoutfitters.com/s...roducts_id=183 . The "Product Priced by Attributes:" is of no value. If it's off, the "price updater" script won't work. If the plus sign is eliminated and the price in the attribute is entered in place of the 'additional' sum, the "price updater" won't work.
    Bottom line, unless the plus sign, additional sum 'and' the "Product Priced by Attributes:" are all working in tandem the "price updater" script won't work.

    The easy solution, although I'm not saying I have figured out how to make the alteration, is to simply 'hide' the plus sign and accompanying dollar increase so that the pull-down menu only has the item displayed like http://www.peninsulaoutfitters.com/f...freestone.html . It's basically the same JavaScript that is used, but the option value is not revealed. Can't Zen-Cart hide the option value somehow?
    Copy includes>modules>attributes.php and paste into includes>modules>YOUR_TEMPLATE_NAME folder(the overrides folder). Create the YOUR_TEMPLATE_NAME folder if you don't have one. So if your template is called custom then you will create a folder called custom inside includes>modules.

    Open the attributes.php file, that's in your custom folder, in your text editor and look for this line, around line 154:

    PHP Code:
    $products_options_display_price' (' $products_options->fields['price_prefix'] .
                              
    $currencies->display_price($new_attributes_pricezen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') '
    and replace with:

    PHP Code:
    $products_options_display_price' <span class="attributesPricePrefix">(' $products_options->fields['price_prefix'] .
                              
    $currencies->display_price($new_attributes_pricezen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') </span>'
    then, in your stylesheet add this:

    Code:
    .attributesPricePrefix {
    visibility: hidden;
    }
    Now, all attribute prices are hidden but the price updater still works. At least with radio buttons, I don't use drop downs but I don't see why it wouldn't work.

    Happy New Year!

    Zen Cart and it's community are the best!!

  3. #243
    Join Date
    Apr 2008
    Location
    Bellingham, WA
    Posts
    10
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    lankeeyankee
    Sweet! But before I make any changes I want to make sure I have the correct line - mine seems to have more than you quoted, but I'm just being meticulous....
    On line 158:
    $products_options_display_price= ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;

    You're saying to change that to:
    $products_options_display_price= ' <span class="attributesPricePrefix">(' . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') </span>';

    Seeing your <span></span> tag tells me that will work...if that's the correct line I showed above for you.
    The reason I ask is because I know that the single quote is very important in the php code. Where you have '(' seems to be replaced with ATTRIBUTES_PRICE_DELIMITER_PREFIX .
    The code, line 158, is found after the //normal price
    Is that right? After, of course, the 'if' and 'else' statements.

    In the end, I should have:
    $products_options_display_price= <span class="attributesPricePrefix">ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX</span>;

    But I'm missing the single quotes before the opening span and after the closing span tags. I'm going to try it like that and will check back here to see if you agreed or have another suggestion.

    Thanks for the fix...

  4. #244
    Join Date
    Apr 2008
    Location
    Bellingham, WA
    Posts
    10
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    I tried the above as show, but it made the page go blank. I changed the code to include '<span class=''attributesPricePrefix">(' before the . and the remaining code, closed it with the . ')</span>'; but it didn't work. That simply added all the code to the drop-down menu so that the + and additional price in addition to the <span></span> coding was also included.
    I tried div tags, but no difference.

    I think wherever the ATTRIBUTES_PRICE_DELIMITER_PREFIX is referenced is where the <span></span> tags should go.
    This theory proves correct. I inadvertently placed the ...._PREFIX at the end of the php code instead of replacing that with the ..._SUFFIX and found that the parenth was reversed around the plus sign and added dollar figure.
    So this puts me on the right track, although still on the hunt...

    Any suggestions where to find the prefix/suffix in the php where I could put the span tag around that code?

  5. #245
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: Dynamic Price Updater

    Quote Originally Posted by LTCreations View Post
    lankeeyankee
    Sweet! But before I make any changes I want to make sure I have the correct line - mine seems to have more than you quoted, but I'm just being meticulous....
    On line 158:
    $products_options_display_price= ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;

    You're saying to change that to:
    $products_options_display_price= ' <span class="attributesPricePrefix">(' . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') </span>';

    Seeing your <span></span> tag tells me that will work...if that's the correct line I showed above for you.
    The reason I ask is because I know that the single quote is very important in the php code. Where you have '(' seems to be replaced with ATTRIBUTES_PRICE_DELIMITER_PREFIX .
    The code, line 158, is found after the //normal price
    Is that right? After, of course, the 'if' and 'else' statements.

    In the end, I should have:
    $products_options_display_price= <span class="attributesPricePrefix">ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX</span>;

    But I'm missing the single quotes before the opening span and after the closing span tags. I'm going to try it like that and will check back here to see if you agreed or have another suggestion.

    Thanks for the fix...
    Ahh, so sorry, I should have mentioned that this was for v 1.3.7.1 so it could be different if you are using 1.3.8a. My attributes file doesn't have ATTRIBUTES_PRICE_DELIMITER_PREFIX etc.

    It should work if you change your file to read:

    PHP Code:
    $products_options_display_price'<span class="attributesPricePrefix">' ATTRIBUTES_PRICE_DELIMITER_PREFIX $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_pricezen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX '</span>'
    Copy and paste this to replace the original line and add the rule to the stylesheet. The single and double quotes are correct. Let me know if you still have a problem and I will install a fresh copy of 1.3.8a on my local box to get it to work right.

    Zen Cart and it's community are the best!!

  6. #246
    Join Date
    Apr 2008
    Location
    Bellingham, WA
    Posts
    10
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    That didn't work....
    What it did do was display the span tags and included class tag inside the drop-down menu surrounding the parenthesis, plus sign and additional dollar figure.
    I had the same results yesterday in trying variations of what you had suggested.

    I was talking to someone else who knows php 'pretty well', and he told me that php won't read html. His suggestion was to add the base price before the plus sign so the 'mentally retarded customers' who are having so much trouble trying to figure out what all the numbers and plus sign mean, they will see the base price plus the additional amount and the total will be found below the drop-down as it's placed now.
    But...that seems pretty lame to add more unwanted information into the drop-down menu when I'm trying to remove what's there now.

    Do you know where the ATTRIBUTES_PRICE_DELIMITER_SUFFIX is found?
    Would it make sense to put the span tags around whever that 'call' is found...in whatever module/file?

    There must be an answer...but I don't know php well enough to figure it out.

  7. #247
    Join Date
    Apr 2008
    Location
    Bellingham, WA
    Posts
    10
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    What if....
    In attributes.php, can't the statement
    if ($new_attributes_price == 0) {
    $products_options_display_price= '';
    } else {
    $products_options_display_price= ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;
    }
    ..be moved so that it's part of the "value" in the pull-down menu?
    I have a JS that uses nearly the exact same process (look here http://www.peninsulaoutfitters.com/f...freestone.html ) to read what's in the "value" of the <option value="blah blah..anything can go here, even +$28.99"></option> and the +$28.99 is added to the base price, then appears in the <input name="tot" /> so that each change is automatically updated and the customer can see immediately the price total.
    So, in theory, the resolve to what I'm seeking would be moving the code for the products options into the "value" field of the <option></option> code.
    But, I have no clue how to tell the php to do that...

    If there 'is' a way to do that I'm sure the Zenners would love whoever comes up with that resolve.

  8. #248
    Join Date
    Apr 2008
    Location
    Bellingham, WA
    Posts
    10
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    How about this....

    I have the JS that will do 'exactly' what I want and can be manipulated as I want for each product. If I implement that script, which is simple to do, how do I pass the information from that script into the shopping cart when the customer clicks on the "Add to Cart" button?

  9. #249
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: Dynamic Price Updater

    I guess I should have checked before I opened my big mouth!

    My fix doesn't work with drop downs, only radio buttons and perhaps check boxes in v1.3.7.1. I am not sure how you can get the same results with drop downs but it has to be possible.

    Can't help with the JS stuff, not strong enough to give any help. Sorry!!

    Zen Cart and it's community are the best!!

  10. #250
    Join Date
    Jul 2006
    Location
    St. Charles, MO
    Posts
    30
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    Quote Originally Posted by pacdad View Post
    Chrome...
    Ok, I (me and another zenner) have come up with a possible idea of why it's not working in FF. Everything is fine in IE, however, with the new updated version of FF, the pricing is not showing on the ADD TO CART tab. Is it possible that the new version of FF is a related issue to this problem ?
    thanks,
    Paul
    OK, So I went back and reinstalled earlier version of Firefox. Alas, I still have same situation. I can not get Price Updater to show up on the "add to cart" tab in FF. Works well in I.E. . Anyone have any thoughts ? Help would be most appreciative.
    thanks,
    Paul

 

 

Similar Threads

  1. v151 Help with dynamic price updater
    By anderson6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 23 Jul 2014, 08:52 AM
  2. v139h Dynamic Price Updater 3.0 Help!
    By Newbie 2011 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Mar 2014, 06:46 AM
  3. Dynamic Price Updater Error
    By Inxie in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 26 Oct 2012, 06:19 PM
  4. Alternative to Dynamic Price Updater?
    By thebigkick in forum General Questions
    Replies: 0
    Last Post: 9 Jul 2012, 11:41 PM
  5. Dynamic Price Updater with href
    By maxell6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Mar 2012, 12:34 AM

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