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

Wholesale prices on products.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-21-2008, 10:59 AM
 
astralbaby astralbaby is offline
 

Member
  
Join Date: Nov 2008
Posts: 13
 

Exclamation Wholesale prices on products.tpl

Ok.. if I view the source for products.tpl it includes another tpl called buy_now.tpl

buy_now.tpl includes the wholesale tpl called product_prices.tpl.. this is the same tpl that product.tpl includes on the item view page... so.. why will it not display on the product list page?

I am trying to display the wholesale prices on the product list page, like the product view page does.. where is the wholesale prices stored? In the database? if so where? i checked every table.. is it on the file system?

I have read many posts where people want this simple functionality that should ship out of the box.. but it does not.. unless i have not enabled a certain function..

If I can find where x-cart stores the wholesale prices, I will release a patch for all that will show wholesale prices on product list..

please.. just point me in the right direction either by telling me where wholesale prices are stored, or let me know why products.tpl will not show the prices when the file is included....
__________________
X-Cart version 4.2.0
X-Cart directory /var/www/vhosts/domain.com/httpdocs
PHP 5.0.4 Details >>
GD bundled (2.0.28 compatible)
MySQL server 4.1.22
MySQL client 4.1.22
DB size 1.941Mb
Web server Apache/2.0.52 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 133.934Mb
Reply With Quote
  #2  
Old 11-21-2008, 09:42 PM
 
astralbaby astralbaby is offline
 

Member
  
Join Date: Nov 2008
Posts: 13
 

Default Re: Wholesale prices on products.tpl

^^
__________________
X-Cart version 4.2.0
X-Cart directory /var/www/vhosts/domain.com/httpdocs
PHP 5.0.4 Details >>
GD bundled (2.0.28 compatible)
MySQL server 4.1.22
MySQL client 4.1.22
DB size 1.941Mb
Web server Apache/2.0.52 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 133.934Mb
Reply With Quote
  #3  
Old 11-22-2008, 04:44 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Wholesale prices on products.tpl

If you want wholesale prices to be displayed, in admin click "modules" and make sure "Wholesale Trading" is checked. Once you do this, each product will have a section named "Wholesale prices" where you can define the wholesale price.

There is also a customer "Wholesale" membership class. This will allow you to have only "wholesale" members use the wholesale pricing.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #4  
Old 11-25-2008, 09:30 AM
 
astralbaby astralbaby is offline
 

Member
  
Join Date: Nov 2008
Posts: 13
 

Default Re: Wholesale prices on products.tpl

I do have the module enabled.. and it DOES show them on the product.tpl page... but NOT on the products.tpl

product.tpl shows the item along with weight and wholesale prices

products.tpl shows the items in the catagory with just a buy now link and a price.. the user is unknowingly forced to make a extra click to see the wholesale prices... I need these prices to be seen on the product list page which is products.tpl..

any help i can get would be greatly appreciated..

--or--

show me where the wholesale prices are stored, then I could just assign the prices to an array and iterate though the array on the template side..

please advise...
__________________
X-Cart version 4.2.0
X-Cart directory /var/www/vhosts/domain.com/httpdocs
PHP 5.0.4 Details >>
GD bundled (2.0.28 compatible)
MySQL server 4.1.22
MySQL client 4.1.22
DB size 1.941Mb
Web server Apache/2.0.52 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 133.934Mb
Reply With Quote
  #5  
Old 11-26-2008, 07:55 AM
 
astralbaby astralbaby is offline
 

Member
  
Join Date: Nov 2008
Posts: 13
 

Default Re: Wholesale prices on products.tpl

^ bump ^
__________________
X-Cart version 4.2.0
X-Cart directory /var/www/vhosts/domain.com/httpdocs
PHP 5.0.4 Details >>
GD bundled (2.0.28 compatible)
MySQL server 4.1.22
MySQL client 4.1.22
DB size 1.941Mb
Web server Apache/2.0.52 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 133.934Mb
Reply With Quote
  #6  
Old 11-27-2008, 07:37 PM
 
astralbaby astralbaby is offline
 

Member
  
Join Date: Nov 2008
Posts: 13
 

Default Re: Wholesale prices on products.tpl

Is this out of the scope of the forum user base? I have wholesale enabled and working.. but just trying to find a way to display prices on product list page.. so customer does not have to click the product to see that there is wholesale pricing structure...
__________________
X-Cart version 4.2.0
X-Cart directory /var/www/vhosts/domain.com/httpdocs
PHP 5.0.4 Details >>
GD bundled (2.0.28 compatible)
MySQL server 4.1.22
MySQL client 4.1.22
DB size 1.941Mb
Web server Apache/2.0.52 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 133.934Mb
Reply With Quote
  #7  
Old 11-28-2008, 12:51 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: Wholesale prices on products.tpl

The wholesale prices is stored in database, the table is xcart_pricing. It contains all prices for all products and variants. If field quantity is equal 1, it's usual price, if more that 1, it's wholesale price.
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #8  
Old 11-30-2008, 11:10 AM
 
mpdaddy mpdaddy is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 43
 

Default Re: Wholesale prices on products.tpl

Try this in your skin1/customer/main/products.tpl file where you want it to display.

Code:
{* Display Lowest Wholesale Prices Start *} {include file="customer/main/product_prices.tpl" product_wholesale=$products[product].wholesale} {* Display Lowest Wholesale Prices End *}

I am using it at http://www.jbholcombe.com to show the wholesale prices. Click on almost any category to see it in action.

Regards
Wayne
__________________
4.1.11
AOM
USPS Click-N-Ship
Reply With Quote
  #9  
Old 12-01-2008, 07:46 AM
 
astralbaby astralbaby is offline
 

Member
  
Join Date: Nov 2008
Posts: 13
 

Default Re: Wholesale prices on products.tpl

using that tpl code does not display wholesale prices on the product list page.. I really do appreciate your help though...

I have been communicating with the help desk.. this is our latest..

> If the customer is viewing a list of products.. I want the customer to see
> the wholesale trading prices on that list... As it operates now.. the
> customer has no idea that wholesale pricing is available unless they click
> MORE INFO.. I also have the buy now link enabled... I want the customer to
> be able to add a item to the cart WITHOUT HAVING to click more info.......

All right, thank you for clarifications. The default x-cart lets you achieve the initially described appearance on product details pages but not on product listing (category details) pages. The task appears to be rather time consuming to be implemented within support service, but please let me suggest you our Custom Development service. You will find more information on the service at
http://www.qualiteam.biz/custom_development.html.




__________________
X-Cart version 4.2.0
X-Cart directory /var/www/vhosts/domain.com/httpdocs
PHP 5.0.4 Details >>
GD bundled (2.0.28 compatible)
MySQL server 4.1.22
MySQL client 4.1.22
DB size 1.941Mb
Web server Apache/2.0.52 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 133.934Mb
Reply With Quote
  #10  
Old 12-01-2008, 07:52 AM
 
astralbaby astralbaby is offline
 

Member
  
Join Date: Nov 2008
Posts: 13
 

Default Re: Wholesale prices on products.tpl

I have developed a solution for this.. it is a hackish fix.. but it does display the wholesale prices on product list..

what I did was included a file into products.php.

In the included file I got the product id and added it to the $products array.. then I created a db connection and queryed the db and assigned the output to a smarty var then displayed it in products.tpl..

If anyone is interested in this fix, please reply here... Only two file edits are required and one new file needs to be uploaded..

Untill x-cart adds this basic functionality to the cart software.. i will use this solution..

i want to thank everyone for their help..
__________________
X-Cart version 4.2.0
X-Cart directory /var/www/vhosts/domain.com/httpdocs
PHP 5.0.4 Details >>
GD bundled (2.0.28 compatible)
MySQL server 4.1.22
MySQL client 4.1.22
DB size 1.941Mb
Web server Apache/2.0.52 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 133.934Mb
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 05:49 AM.

   

 
X-Cart forums © 2001-2020