![]() |
Show Wholesale Prices On Product Listing 4.2
Does anyone know how to show the discounts for quantiy on products listing when logged in.
This is from product.tpl <script type="text/javascript"> <!-- var min_avail = {$product.appearance.min_quantity|default:1}; var avail = {$product.appearance.max_quantity|default:1}; var product_avail = {$product.avail|default:"0"}; --> </script> <input type="text" id="product_avail_input" name="amount" maxlength="11" size="6" onchange="javascript: return check_quantity_input_box(this);" value="{$smarty.get.quantity|default:$product.appe arance.min_quantity}"{if not $product.quantity_input_box_enabled} disabled="disabled" style="display: none;"{/if}/> <select id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && ($product_options ne '' || $product_wholesale ne '')} onchange="javascript: check_wholesale(this.value);"{/if}{if $product.quantity_input_box_enabled} disabled="disabled" style="display: none;"{/if}> <option value="{$product.appearance.min_quantity}"{if $smarty.get.quantity eq $product.appearance.min_quantity} selected="selected"{/if}>{$product.appearance.min_quantity}</option> {if not $product.quantity_input_box_enabled} {section name=quantity loop=$product.appearance.loop_quantity start=$product.appearance.min_quantity} {if %quantity.index% ne $product.appearance.min_quantity} <option value="{%quantity.index%}"{if $smarty.get.quantity eq %quantity.index%} selected="selected"{/if}>{%quantity.index%}</option> {/if} {/section} {/if} </select> {else} How do I add part od this code to the products.tpl so it will show on product listing? |
Re: Show Wholesale Prices On Product Listing 4.2
Help
|
Re: Show Wholesale Prices On Product Listing 4.2
Could you be a bit more specific on what you want and where?
|
Re: Show Wholesale Prices On Product Listing 4.2
Thanks for looking at this.. on the product page when logged in.... We have a product that has some wholesale rates applied. Xcart will show a small table with quantity and price. so in this case we have 2 wholesale rates shown in the table. This displays fine on the product page but we need the table of wholesale rates values to display in the product listing page.
The reason is clients cant tell they get a discount when they change quantity unless they go to the detail page to see wholesale rates. so all i need t do is add the wholesale rate table to the product listing page I woud like to put this table under the product thumbnail on both product page and product listing page |
Re: Show Wholesale Prices On Product Listing 4.2
you will need to change teh code quite a bit, and possibly the PHP to call the data needed to be displayed on the products.tpl.
|
Re: Show Wholesale Prices On Product Listing 4.2
Its a bit shocking that this is a big deal. Why on earth would they add 1 click to the process?
I used to think a mouseclick wasnt a big deal but it does... I would change the code to do it right but we are looking at new versions soon and will stick with xcart til ver 5 then evaluate is its worth it... |
Re: Show Wholesale Prices On Product Listing 4.2
It might not be as huge deal. You should contact QT or one of the pro programmers, for a quote.
It might be as easy as changing the syntax. I haven't really tried to do this. If you need some pretty designs let me know :) |
Re: Show Wholesale Prices On Product Listing 4.2
I tried getting this to work on my test server, but couldnt.
Furthest I could get was to show the table for pricing and such, but nothing came up. Not having a glossary of x-cart coding info is a real pain. |
Re: Show Wholesale Prices On Product Listing 4.2
Solved - Just need the info to show in Featured and in the cart pages
http://forum.x-cart.com/showthread.php?t=48399&highlight=quantity |
Re: Show Wholesale Prices On Product Listing 4.2
Is the link above correct? It goes to a mod that allows wholesale pricing with options, it doesn't say anything about displaying wholesale prices on the products page.
|
All times are GMT -8. The time now is 09:25 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.