Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Show Wholesale Prices On Product Listing 4.2

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-29-2009, 09:41 PM
 
computerclone computerclone is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 36
 

Default 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?
__________________
X-Cart Gold 4.31, 4.23 and so and so forth...
Add-on: X-Affiliate
Add-on: X-Configurator
Add-on: X-RMA (Return Merchandise Authorization)
Add-on: X-FeatureComparison
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Tabs for product pages

www.definedmedia.com
Reply With Quote
  #2  
Old 08-01-2009, 08:18 AM
 
computerclone computerclone is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 36
 

Default Re: Show Wholesale Prices On Product Listing 4.2

Help
__________________
X-Cart Gold 4.31, 4.23 and so and so forth...
Add-on: X-Affiliate
Add-on: X-Configurator
Add-on: X-RMA (Return Merchandise Authorization)
Add-on: X-FeatureComparison
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Tabs for product pages

www.definedmedia.com
Reply With Quote
  #3  
Old 08-01-2009, 08:26 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Show Wholesale Prices On Product Listing 4.2

Could you be a bit more specific on what you want and where?
__________________
- Shane Munroe
Reply With Quote
  #4  
Old 08-01-2009, 02:35 PM
 
computerclone computerclone is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 36
 

Default 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
__________________
X-Cart Gold 4.31, 4.23 and so and so forth...
Add-on: X-Affiliate
Add-on: X-Configurator
Add-on: X-RMA (Return Merchandise Authorization)
Add-on: X-FeatureComparison
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Tabs for product pages

www.definedmedia.com
Reply With Quote
  #5  
Old 08-01-2009, 06:07 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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.
__________________
xcart 5.1.2
Reply With Quote
  #6  
Old 08-01-2009, 06:37 PM
 
computerclone computerclone is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 36
 

Default 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...
__________________
X-Cart Gold 4.31, 4.23 and so and so forth...
Add-on: X-Affiliate
Add-on: X-Configurator
Add-on: X-RMA (Return Merchandise Authorization)
Add-on: X-FeatureComparison
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Tabs for product pages

www.definedmedia.com
Reply With Quote
  #7  
Old 08-01-2009, 10:57 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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
__________________
xcart 5.1.2
Reply With Quote
  #8  
Old 08-02-2009, 03:49 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default 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.
__________________
- Shane Munroe
Reply With Quote
  #9  
Old 08-02-2009, 02:45 PM
 
computerclone computerclone is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 36
 

Default 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
__________________
X-Cart Gold 4.31, 4.23 and so and so forth...
Add-on: X-Affiliate
Add-on: X-Configurator
Add-on: X-RMA (Return Merchandise Authorization)
Add-on: X-FeatureComparison
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Tabs for product pages

www.definedmedia.com
Reply With Quote
  #10  
Old 11-22-2009, 04:38 AM
  proboscidian's Avatar 
proboscidian proboscidian is offline
 

Senior Member
  
Join Date: May 2005
Location: Clearwater, FL
Posts: 146
 

Default 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.
__________________
Industrial Webworks
Various xcart versions from 4.1.19 gold - 4.7 gold
http://www.industrialwebworks.net
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:28 AM.

   

 
X-Cart forums © 2001-2020