activa Posted August 5, 2015 Report Posted August 5, 2015 as the title se is possible to add item to order cart outise the order form ? if yes what is need to be sent to the cart and url should be used . best regards Quote
Stacktron Posted August 5, 2015 Report Posted August 5, 2015 Blesta already does that. If no cart is appearing, go into the following: App > Views > Client > Your theme name (usually bootstrap) > structure.pdt Look for the following tag: <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/jquery-client-3.1.0.js"></script> The version number might be different depending on your version. If it is, that's fine. Next, change the version number to 3.5.0. It should look like this: <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/jquery-client-3.5.0.js"></script> That should fix your problem. :-) Quote
Blesta Addons Posted August 6, 2015 Report Posted August 6, 2015 Blesta already does that. If no cart is appearing, go into the following: App > Views > Client > Your theme name (usually bootstrap) > structure.pdt Look for the following tag: <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/jquery-client-3.1.0.js"></script> The version number might be different depending on your version. If it is, that's fine. Next, change the version number to 3.5.0. It should look like this: <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/jquery-client-3.5.0.js"></script> That should fix your problem. :-) i don't see any relation with your solution to the question !!! the OP ask to send data to ad it to the cart in the order form . let say this example that i have also depending in the solution . i have a plugin page X , i want to add a botton , when i click in it , it will add the X item in the session cart of order form . what should the form contient as a data to be sent and added to the cart ? if client go to checkout he can see what is added. this is possible ? Quote
Blesta Addons Posted August 7, 2015 Report Posted August 7, 2015 any help in this ? just a road to follow Quote
Tyson Posted August 7, 2015 Report Posted August 7, 2015 I'm not sure it's possible to add an item to the cart outside of the order system. You could try crafting some specific POST data to the order's /config/ page to imitate the current functionality. You'll need to look at the order plugin Config controller. Quote
activa Posted August 8, 2015 Author Report Posted August 8, 2015 what i have se the cart is using it own sessions ..... we can make our plugins manipulating the sessions directly without the need to use the order form functions . Quote
Stacktron Posted August 9, 2015 Report Posted August 9, 2015 i don't see any relation with your solution to the question !!! the OP ask to send data to ad it to the cart in the order form . let say this example that i have also depending in the solution . i have a plugin page X , i want to add a botton , when i click in it , it will add the X item in the session cart of order form . what should the form contient as a data to be sent and added to the cart ? if client go to checkout he can see what is added. this is possible ? Maybe I read it wrong, but when there was no cart appearing on the right side of the order form I just changed the Javascript version and it worked. Well, Licensecart changed it. Quote
Blesta Addons Posted August 9, 2015 Report Posted August 9, 2015 Maybe I read it wrong, but when there was no cart appearing on the right side of the order form I just changed the Javascript version and it worked. Well, Licensecart changed it. Ohh, you have misunderstand the OP question , he is not asking about the cart in the order form , he is asking about integrating the cart in it own plugin , Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.