Jump to content

Creating a double price on product page.


Recommended Posts



I'm trying to put a double price on my product page. One for the "regular" customer and one for the "club" customer.

club customers have special discount.

I want to show "regular" customer that they should subscribe to be a "club" customer for them to get the special discount.


Ok now my first job is to write on the product page this simple thing : 

"club price starting from : [productprice with condition of being part of the group customer 2]


So I need to understand how prestashop 1.5 create this condition with javascript.


For the moment i can only write the product price with :


<script type="text/javascript" language="Javascript">// <![CDATA[
document.write("<B>club price starting from : </B>" + productPrice);
// ]]></script>
Can someone tell me how to construct the condition [productprice with condition of being part of the group customer 2] ?
Link to comment
Share on other sites

Is the price discount just a fixed percentage? Then a quick (and, I admit, "and dirty") way is just to show the productPrice - (productPrice*discount)


example 10% discount

100 - (100*.1) = 90


May work for you. If not let us know. Maybe someone knows where the "group X" product price is decided??


My 2 cents,


Link to comment
Share on other sites



yes I have managed it that way.

Because after screening the code, the group is not mentionned in the javascript.

Actually it is quite normal that, as a regular customer (but with javascript skills!), you may not get the club price just by looking into the code.

Well I guess I'll do it your way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...