Adding Add to Cart Functionality in JQUERY script.

  • Posts: 26
  • Thank you received: 0
10 years 11 months ago #162888

I'll keep it simple:

I have a product customize tool, which allows customers to design a product. It changes the price, based on the options that they chose. My question is, how do I integrate this with hikashop?

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

  • Posts: 83935
  • Thank you received: 13596
  • MODERATOR
10 years 11 months ago #162892

Hi,

First, you want to setup the donation plugin:
demo.hikashop.com/index.php?option=com_h...show&cid=214&lang=en
That way you can have a product where the price can vary.
then, you can just redirect the customer to the add to cart URL of that donation product with the price injected in the custom field via a parameter in the redirection URL. You can read more about that here:
www.hikashop.com/forum/2-general-talk-ab...-product-fields.html

The following user(s) said Thank You: sashco

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

  • Posts: 26
  • Thank you received: 0
10 years 11 months ago #163304

Thank you so much! I'm going to give this a try. I appreciate your help. One question though, where do I get that plugin?

Last edit: 10 years 11 months ago by sashco.

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

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

Hi,

You should be able to find the plugin "custom price" via System > Plugins.

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

  • Posts: 26
  • Thank you received: 0
10 years 11 months ago #163420

I don't see any plugins there, unless I click on "new." Even in there, there are no plugins called custom price.

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

  • Posts: 83935
  • Thank you received: 13596
  • MODERATOR
10 years 11 months ago #163448

The plugin is called "HikaShop Donation plugin" and can be found in the Joomla plugins manager.

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

  • Posts: 26
  • Thank you received: 0
10 years 11 months ago #163552

Found it.... Was looking in Hikashop plugins. Do I need to do something in Hikashop once enabled in Joomla? I don't see the plugins enabled listed in Hikashop plugins (in the hikashop configuration).

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

  • Posts: 83935
  • Thank you received: 13596
  • MODERATOR
10 years 11 months ago #163587

It's nomal that you don't see it in HikaShop configuration.
There is nothing else to do to activate it.
Of course, make sure that you created the custom item field as explained in the link I first gave you:
demo.hikashop.com/index.php?option=com_h...show&cid=214&lang=en

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

  • Posts: 26
  • Thank you received: 0
10 years 10 months ago #165328

I'm somewhat confused by the explanation on the link provided.

"The donation plugin is already installed by default with the Business edition of HikaShop. You can find it in the folder plugins/system/custom_price of your website if you want to see its code."


Found it, now I don't know what to do next.

"You will have to create a custom field of the table "item" with the column name "amount" in order to use it.
You can take example on our backend setup of this product and custom field in order to get the same result on your end."


I apologize, but I am lost. I This is one of the most important features on our site and I want to make sure I get this right. I'm using a custom product script; where people can design a product, and the price is variable based on what images, fonts, etc. they chose. I need the price set by that script to populate hikacart. I understand this is the plugin that I need to use, but I don't get where I'm creating a column "amount", and what script I need to add in order to use this functionality in my site.

I would really appreciate your help with this. I will make sure to include hikashop mentions on our website, and we do get a lot of press.

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

  • Posts: 83935
  • Thank you received: 13596
  • MODERATOR
10 years 10 months ago #165345

Hi,

You need to create a custom field in your HikaShop backend. That can be done via the menu Display>Custom fields in HikaShop. Just set it similarly to how we created in the backend of the demo website in that same menu.

Then, you need to redirect to the add to cart URL of the product with the extra parameter for the price in the URL as explained in the second link I gave ( www.hikashop.com/forum/2-general-talk-ab...-product-fields.html ). Such redirect can be done in javascript with the window.location.href attribute ( www.w3schools.com/jsref/prop_loc_href.asp ) that you can add in your customization tool's code.

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

  • Posts: 26
  • Thank you received: 0
10 years 9 months ago #168052

Would you help integrate this, and if so, how much would you charge?

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

  • Posts: 83935
  • Thank you received: 13596
  • MODERATOR
10 years 9 months ago #168091

We won't but you can contact our partners for a quote on that development project:
www.hikashop.com/home/our-partners.html

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

Time to create page: 0.085 seconds
Powered by Kunena Forum