Jump to content

[Solved] TWO PRICES ONE PRODUCT


Recommended Posts

HI,
I hope this time someone can help me. I need to have two prices for one product. Namely I have various teas for sale and I have a offer that if you pick up and mix 6 different ones you will save some cash. I need to put two prices on the product page so customers would be able to buy either in bulk or single item, I need sth similar to that http://cairnomohr.homestead.com/shop.html on the bottom ypu have discount bulk price and normal retail. I would be grateful for any support.
regards,
eva

Link to comment
Share on other sites

solced using this http://www.prestashop.com/wiki/Attributes_and_attribute_groups/#Create_variations_of_a_product_with_attributes nut one more quesion can i disable drop down menu so customer will see both prices at the same time

to see drop menu I had to add this to product.tpl

{if isset($groups)}
           <!-- attributes -->

           {foreach from=$groups key=id_attribute_group item=group}


{$group.name|escape:'htmlall':'UTF-8'} :
               {assign var='groupName' value='group_'|cat:$id_attribute_group}
0}$('#resetImages').show('slow'); {/if}">
                   {foreach from=$group.attributes key=id_attribute item=group_attribute}
{$group_attribute|escape:'htmlall':'UTF-8'}
                   {/foreach}


           {/foreach}

           {/if}

{if isset($groups)}
           <!-- attributes -->

           {foreach from=$groups key=id_attribute_group item=group}




{$group.name|escape:'htmlall':'UTF-8'} :



   {foreach from=$group.attributes key=id_attribute item=group_attribute}
<input type="radio" name="group_{$id_attribute_group}" >
{$group_attribute|escape:'htmlall':'UTF-8'}





{/foreach}

           {/foreach}

           {/if}



However I couldn;t manage to hide the select box, as when I hidden it the price java stopped working so i had to add spearate class and then hid it at the bottom of page using global css

.attributesukryte p select { color: white;
   font-size: 0.01px;
   margin-left: -600px;
   margin-top: 1010px;
width: 1px;
   position: absolute;}
.attributesukryte p label{   color: white;
   font-size: 0.01px;
   margin-left: -600px;
   margin-top: 1010px;
   position: absolute;}



NOT PERFECT BUT IT WORKS

Link to comment
Share on other sites

  • 10 months later...
  • 4 weeks later...
  • 8 months later...
  • 3 weeks later...

Hi guys,

I use PS 1.3.6 and i would like to display a specific text message when a customer from the Group X (not conditioned by his/her name of his/her customer id) is logged in.

 

I tried the following combinations:

 

{if $logged}

{if isset($id_group) and $id_group==3}

<p class="warning"> Show this message 1 </p>

{else}

<p class="warning"> Show message 2 </p>

{/if}

{/if}

 

This option does not work ok and it displays the text in the {else} condition only.

 

I tried as well

 

{if $logged}

{if (self::$cookie->id_customer)}

{$customer = new Customer(intval($this->id_customer));

$customer->getGroups()}

{if ($customer_group==3)}

<p class="warning"> Show message 1 </p>

{else}

<p> Show message 2 </p>

{/if}

{/if}

{/if}

 

This code disables the body of the page completely.

 

Any tips on how to code it correctly?

 

Again, this is about showing a specific text message to a customer, depending on the group he's in (as set in the back office), independent of the name of the customer or the customer id.

version PS 1.3.6

Edited by marco989 (see edit history)
Link to comment
Share on other sites

  • 7 months later...
  • 2 years later...

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...