|
| How can you remove + (price prefix) in PAPs attrib 1 Year, 6 Months ago | | PAPs has been working well for me, but I have run into a problem. My product uses the option of "product priced by attribute". So if I am selling a number of helmets of different styles, the attribute is the helmet price. Problem is PAPs seems to list the attribute name followed by a + and then the attribute price. Like this: Sonora TC-10 +$499.99, Matte Black +$512.99, and so on. I need to remove the +. There is an option in Zen Cart under Catalog>Product Types>edit layout: DOCUMENT GENERAL Attribute Price Prefix - Default. The options are Blank, +, or -. Changing that to "blank" does not affect the price prefix in PAPs. Although, if you choose not to use PAPs and just use the Zen Cart attribute, it will take the + away. So, what about removing the + in the database under the listing of Price Prefix? Well, when I try that, PAPs removes the number and the attribute price becomes blank (although it still works if you add it to the cart). Any ideas on how to remove the +? I am afraid buyers will be think something is wrong if I leave it there. I know someone will suggest to set a price as the item base and then calculate the difference in PAPs, but I might sell one helmet that has 30 styles, some of them with more that $100 difference. I don'e want the user to have to look at 30 helmets and see +'s and -'s and have to calculate this in their head. The attribute has to be the final price in my store. Any ideas? |
| | | |
|
| Re: How can you remove + (price prefix) in PAPs attrib 1 Year, 6 Months ago | | I was looking at the code I can see with Chrome's Developer tools and I see the following: <br>Black<br>+$649.99<br><input type="radio" name ="id[3]" value="12" onclick="if(document.getElementById('productPrices')){update_price(649.9900, '+', '0');}if(document.getElementById('attr_img_tit'))document.getElementById('attr_img_tit').innerHTML = 'Black';doPic('paps_makethumb.php?pic=images/paps/X-Twelve_Black.jpg&w=300')"> I was hoping that the + had a class or id, because then I could set it's style to { display:none; } and that would work to hide it. There are not many options since the source code is encrypted and not modifiable. I'm hoping there exists an easy, out of the box way to do it. |
| | | |
|
| Re: How can you remove + (price prefix) in PAPs attrib 1 Year, 6 Months ago | | Hi Thanks for the enquiry. If the problem is simply one of display and everything else is working fine, try the following: Open this file: includes/modules/paps_layout/thumbs_left.php (I presume this is the layout you are using judging from the screenshot you provided - if not, use one of the other layout PHP files in the same folder) This file is unencrypted. Look on line 192, which should be: echo '<br>' . $avp['price_prefix'] . $currencies->format($avp['options_values_price']); and change it to echo '<br>' . $currencies->format($avp['options_values_price']); That should do the trick. |
| | | |
|
| Re: How can you remove + (price prefix) in PAPs attrib 1 Year, 6 Months ago | | It worked like a charm  |
| | | |
|