Is it possible to change a price with a script ?

  • Posts: 34
  • Thank you received: 0
9 years 2 weeks ago #219972

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5

Hello,
I have a list of product come from another website (not Joomla).
Is-it possible to allow my customers to pay in my Joomla website with this custom price (populate by a script) ?

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 2 weeks ago #219979

Hi,

Yes, you can use the donation plugin for that:
demo.hikashop.com/index.php/en/hikashop/...t-page/donation-page

And you can use the add to cart URL of your product to populate the price in the custom item field automatically:
www.hikashop.com/forum/2-general-talk-ab...-product-fields.html

The following user(s) said Thank You: Sciuridae

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

  • Posts: 34
  • Thank you received: 0
9 years 2 weeks ago #220180

Thank you Nicolas.
the donation pluggin is only available with the business pack isn't it ?

if I upgrade my hikashop version do I have the licence one years more from now ?

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 1 week ago #220283

Hi,

1. That's right.

2. Yes.

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

  • Posts: 34
  • Thank you received: 0
9 years 6 days ago #221174

in the donation-page the two links "this product" and "custom field" doesn't work.
Where can I find how to configure a donation product ?

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

  • Posts: 12953
  • Thank you received: 1778
9 years 5 days ago #221213

Hello,
Then checking that thread will probably help you : hikashop.com/forum/4-how-to/83889-donation-plugin.html#109822

Here is the custom price plugin, if you want to use is you'll have to :
- create a category named donation
- create a product named donation set the price to 0 and the category to donation

- go to "Hikashop -> Display -> Custom fields"
- create a new field
- set the "label" field to amount
- set the "table" field to item
- set the "Column name" field to amount
- set the "field type" to texte
- set the "default value" to 0
- add the donation category

- add the custom price plugin and enable it.

Last edit: 9 years 6 days ago by Mohamed Thelji.

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

  • Posts: 34
  • Thank you received: 0
9 years 5 days ago #221348

Thank you Mohamed,
Now I have a variable to alow my customers to pay only a 30% deposit or the totality.
Can I add my javascript function to this product page?
because if I display this product in another article there is no variation of product right ?

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 4 days ago #221357

Sure. You can edit the file "show_default" via the menu Display>views and add your custom javascript in there.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum