Hikashop custom quantity plugin

  • Posts: 26
  • Thank you received: 0
9 years 6 months ago #221569

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.1.
-- PHP version -- : 5.4

I now use the plugin named "HikaShop Custom Quantity plugin" for products with different dimensions.
but it is also possible to fill in a fixed specify a value for the width, and the customer than put in the value for the length.
I have different categories with different values starting from a fixed width

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
9 years 6 months ago #221572

Hi,

Sure. Just create a copy of the plugin and modify the lines which calculate the quantity.

For example, instead of :
$quantity = $quantity*$product->length*$product->width;
you could have:
$quantity = $quantity*$product->length*18;

So that only the length custom field would be taken into account.

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

  • Posts: 26
  • Thank you received: 0
9 years 6 months ago #221938

Hi,

Thanks for the respons, but i don't understand.

if I adjust the plugin and re-install I get the following error code.
Warning
Plugin Install: Another plugin is already using directory: /home/vhosts/foliewinkel.com/httpdocs/webshop/plugins/system/custom_quantity_width_length

So How do I copy a plugin
and do I have for each type (width) of a product to customize the plugin?

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
9 years 6 months ago #221966

Hi,

First uninstall that old plugin.
Then install your modified version and it should work.
And no, you don't need to have one plugin for each product.
You can for example create a custom field of the table "product" via the menu Display>Custom fields and then use the value from that custom field in the plugin instead of setting the value hard coded.

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

  • Posts: 344
  • Thank you received: 3
8 years 7 months ago #253713

Hikashop 2.6.4.

Where can I download "HikaShop Custom Quantity plugin" this plugin ?

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 7 months ago #253715

Hi,

It's already in the HikaShop packages.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum