#1  
Old 12-31-2016, 01:39 PM
mgalal's Avatar
mgalal is offline
Junior Member
 
Join Date: Dec 2016
Posts: 1
Default

Triggering JS events on storefront


Hello,

i have a question now i add an option for product called "preorder" should when i make it yes in selection the bottom appear but it works then i do this by hand but when the code trigger the option it works as the option in select menu changes but the bottom not appears, what is the problem here ? is the triggers JS events not possible in storefront ?

for example is did this code in console:
$('#ecwid-productoption-131321321-preorder').val('Yes').change();

Select happen but non of other depends events

what is the problem here ?

Thanks
Reply With Quote
  #2  
Old 01-05-2017, 09:22 AM
smartMart's Avatar
smartMart smartMart is offline
 
Join Date: Oct 2014
Posts: 294
Default

Something like this helped me (in my case):
Code:
jQuery('.some-ecwid-UI-element')[0].click();
__________________
Regards, -
Roman Zander, third-party developer (smartMart.com.ua
)
My Ecwid Apps: Bulk Gallery Upload for Ecwid
Reply With Quote
The Following User Says Thank You to smartMart For This Useful Post:
Cyril D (01-08-2017)
  #3  
Old 01-08-2017, 05:53 PM
Cyril D's Avatar
Cyril D Cyril D is offline
Ecwid Team
 
Join Date: Feb 2015
Location: Ecwid HQ
Posts: 543
Default

Hi mgalal! Thanks for getting in touch and sorry for the delayed reply.

Have you had a chance to try the approach suggested by smartMart? Has it worked for you? Please, let us know. And also, a link to a page with your custom scripts added would be very helpful in order to find out what the real problem is. Thank you.
__________________
Cyril D.
Ecwid Customer Care Team

More tips and hints on Ecwid use in our Help Center

⬇ Please click Thanks if my reply helped you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:08 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.