Passing price in product link

  • Posts: 1
  • Thank you received: 0
  • Hikashop Business
2 years 5 months ago #342208

-- HikaShop version -- : 4.5.1

Hi, I'm wondering how can I pass the price for a "donation" product in the product link.

What I need is to redirect to the product link " dev.mywebpage.com/index.php?option=com_h...1&cid=256&Itemid=112 "

but adding a price param &price=123,

and add that price to the cart instead of the default price.

"< a class="hikashop_html_add_to_cart_link" href=" dev.mywebpage.com/index.php?option=com_h...1&cid=256&Itemid=112 &price=123">Add to cart< / a >"

Is there a way to achieve that?

I'm using Hikashop bussines (4.5.1);

I'd appreciate any help or direction on this.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 5 months ago #342217

Hi,

Yes it's possible.
You need to create a custom field of the table "item" via the menu Display>Custom fields where the value will be stored in the cart and in the order.
Then, you need to configure the HikaShop donation plugin (custom price) via the Joomla plugins manager and enter the column namre of that custom field in its settings.
Then, you can use a parameter with the name

data[item][xxx]
where xxx is the column name:
www.hikashop.com/forum/2-general-talk-ab...ct-fields.html#16216

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

Time to create page: 0.056 seconds
Powered by Kunena Forum