Jump to content

 

Elsherif

Member Since 10 Jul 2015
Offline Last Active Sep 29 2015 06:01 AM
-----

Topics I've Started

Import Options As Global

23 September 2015 - 12:42 PM

What do I've to write in my CSV file to import the product with global options?


How Can I Stop Script Execution From A Hook

24 August 2015 - 09:11 AM

Hi,
I'm using a hook in my addon that in one case displays a notification using "fn_set_notification" and it is supposed to stop execution after this because in this case there is an error with the entered data.
So right now I'm just using exit; after the notification and it is working fine but it generates the following error:
PHP Fatal error:  Uncaught  --> Smarty: Missing template name <--
  thrown in /path//to/public_html/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 679

So I guess the controller is returned to the templater which doesn't have a template to show or whatever.
How can I do this the right way?

How To Change Store Currency From Addon

04 August 2015 - 06:10 AM

How can I change the current currency of the site from addon code?
Default currency changer uses GET request variable 'currency' to change the currency.
But I need to change it from the code according to some condition.

How To Attach Extra Information To Order Item

28 July 2015 - 12:05 PM

Hello everyone,

I want to know how can I attach additional information to product order from an addon.
I tried using 'pre_add_to_cart', 'add_to_cart, and 'post_add_to_cart' hooks.
But whenever I add any information to the product or the cart array it gets deleted in the next step so how can I do this?

Apply Options To Category Rather Than Single Product

23 July 2015 - 09:43 AM

Hello again,

As stated in the topic title I want to apply product option to a whole category rather than for each product individually.
This means all current products at the specified category should automatically have the specified option as will as all new products which will be added in the future.

Any suggestions?