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

Changing the display price on Product page

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-06-2017, 02:52 PM
 
madhatter717 madhatter717 is offline
 

Member
  
Join Date: Oct 2016
Posts: 24
 

Default Changing the display price on Product page

hello all,

I am trying to modify the pricing display on our product pages that use the wholesale pricing module to create an "as low as" pricing structure.

I would like the price that is displayed on the product page to be the lowest entered price in the wholesale pricing module for that product.
example: price per unit is $3.16 for 1-149, but at 150+ the price is $2.05
I would like this price (the $1.50) to be the one that is displayed on the product page as the display price.

I am unsure of where in the wholesale module i should be looking (i believe it is the view folder) and where/what page I should be looking at to affect the change I desire.

could you please point me in the right direction

Thanks
__________________
x-cart business 5.2.14
Reply With Quote
  #2  
Old 10-15-2017, 10:56 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Changing the display price on Product page

The product page updates the price when you change options or select the quantity.
So, I'm not sure how you want it to be replaced with a static "from $xxx.xx".

Or do you want it to be another (new) line?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 10-16-2017, 08:37 AM
 
madhatter717 madhatter717 is offline
 

Member
  
Join Date: Oct 2016
Posts: 24
 

Default Re: Changing the display price on Product page

Thank you for your reply, Your right the product page does update the price when you change options or select a particular quantity. I wasn't really wanting to replace the dynamic price display with a static one. I am looking to change the behavior of the page to display the lowest wholesale price on products that have a WholesalePrice class. In effect overriding the function: getClearPrice.

I made a mistake in the example I gave where it says..."but at 150+ the price is $2.05 I would like this price (the $1.50) to be the one that is displayed on the product page as the display price"

It should have read.."I would like this price (the $2.05) to be the one that is displayed on the product page as the display price."

We have a catalog of products that have different pricing based upon how many you order, we use the wholesale price module to create these tiers of different pricing and how many you must order to get this price and the savings you will receive for ordering at this quantity, we want the lowest price point based on the wholesale price to be displayed on the product page instead of the base price of the product which is the current default behavior of x-cart. Our wholesale prices are available to ALL customers, so we don't have any memberships.

I hope this clarifies.
__________________
x-cart business 5.2.14
Reply With Quote
  #4  
Old 11-09-2017, 09:51 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Changing the display price on Product page

I'm sorry, but I still don't understand how it should work.

The page displays a price that depends on the options selected by the user.
When you open the page the "selected" quantity is "1".
You want to replace this price with the one that applies when the selected quantity is 150 or more.
So... you should either break the dynamic price logic, or pre-fill the quantity to be 150 somehow.

Perhaps, you are better to hire someone to code this for you.
Also, a step-by-step description of the desired behaviour would help the developer a lot.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 11-10-2017, 12:28 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,061
 

Default Re: Changing the display price on Product page

So when a customer comes to the page, it shows the lowest price initially.
Then when they change the qty, the price updates accordingly?
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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:02 PM.

   

 
X-Cart forums © 2001-2020