- Posts: 1
- Thank you received: 0
Passing price in product link
4 years 5 months ago #342208
by swgadmin
Passing price in product link was created by swgadmin
-- 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.
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.
4 years 5 months ago #342217
by nicolas
Replied by nicolas on topic Passing price in product link
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
where xxx is the column name:
www.hikashop.com/forum/2-general-talk-ab...ct-fields.html#16216
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
Code:
data[item][xxx]
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.048 seconds