Discount on packs of items

  • Posts: 206
  • Thank you received: 26
11 years 11 months ago #77755

Oh i knew how to change, just not how to make it work, any other ways?


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)

Please Log in or Create an account to join the conversation.

  • Posts: 206
  • Thank you received: 26
11 years 11 months ago #77758

UH OH double post!


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)
Last edit: 11 years 11 months ago by tjharvey.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #77777

In the previous given code, a ")" is missing, use this one:

$productsPack = array("28", "29");
if(in_array(hikashop_getCID(),$productsPack))
    echo JText::sprintf('PER_PACK_AT_LEAST_X_BOUGHT',$price->price_min_quantity);
else
    echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity);

The following user(s) said Thank You: tjharvey

Please Log in or Create an account to join the conversation.

  • Posts: 206
  • Thank you received: 26
11 years 11 months ago #77779

Woo!

PER_PACK_AT_LEAST_X_BOUGHT="per pack for buying at least %s"

If i wanted that to work for the per_pack
gyazo.com/895528f25d7ddbebe717ecb4ff5310d9

Would it be (in the translation bit)
PER_PACK="per pack"





Oh and:
www.uk-leds.com/product/28-led-smiley-face.html

You guys are great :)


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)
Last edit: 11 years 11 months ago by tjharvey.
The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum