Jump to content

 

teosu

Member Since 09 Oct 2014
Offline Last Active Yesterday, 01:07 PM
-----

Topics I've Started

Nginx Seo Problem

14 February 2018 - 08:46 AM

fixed


Nginx Strtolower Problem With Fpm Handler

14 February 2018 - 08:17 AM

hi all when i tried change php handler to fpm i am getting strtolower problem like this

Warning: require(/var/www/vhosts/mobilcebimde.com/httpdocs/app/functions/fn.ultImate.php): failed to open stream: No such file or directory in /var/www/vhosts/example.com/httpdocs/init.php on line 76

my language is turkish check fn.ultImate.php is not fn.ultimate.php doesnt lower I to i. when i manually edit. smarty libs getting same problem.

 

any help ?


Problem With Change To Nginx On Plesk

13 February 2018 - 04:32 PM

hi i am try change apache to nginx on plesk web server

 

i setup server with this article

http://docs.cs-cart....tall/nginx.html

 

i am getting this erros

Fatal error: Uncaught Error: Class 'Smarty_Internal_SmartyTemplateCompiler' not found in xxx
httpdocs/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:714 Stack trace: #0
httpdocs/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #2
httpdocs/app/Tygh/SmartyEngine/Core.php(76): Smarty_Internal_TemplateBase->fetch('index.tpl', NULL, NULL, Object(Tygh\SmartyEngine\Core), false, true, false) #3
httpdocs/app/functions/fn.control.php(618): Tygh\SmartyEngine\Core->fetch('index.tpl') #4 
httpdocs/admin.php(27): fn_dispatch() #5
httpdocs/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 714

whats wrong ? i disable htacces and enable doesnt work please any one can help ?


Help Addon Buy X Get X Free Product

24 January 2018 - 08:18 AM

hi i am developing an addon. when customers buy an product it will give free similar main product amount.

 

i dont want use promotions coz. its not promotion its routine procedure also promotions doesnt calculate amount.

 

anyway i build admin side product tabs, db and select one free product

 

used pre_add_to_cart hook

 

code

foreach ($free_products as $fp) {


                if (fn_check_free_promotion($fp['product_id']) == 'Y') {
                    if (!isset($cart['products'][$p_id])) {

                        $cart['products'][$p_id]['product_id'] = $fp['product_id'];
                        $cart['products'][$p_id]['product_code'] = fn_get_product_code($fp['product_id']);
                        $cart['products'][$p_id]['product'] = fn_get_product_name($fp['product_id']);
                        $cart['products'][$p_id]['main_pair'] = fn_get_cart_product_icon($fp['product_id']);
                        $cart['products'][$p_id]['amount'] = $data['amount'];
                        $cart['products'][$p_id]['stored_price'] = 'Y';
                        $cart['products'][$p_id]['price'] = 0;
                        $cart['change_cart_products'] = true;


                    } else {
                            $_initial_amount = empty($cart['products'][$p_id]['original_amount']) ? $cart['products'][$p_id]['amount'] : $cart['products'][$p_id]['original_amount'];
                            $cart['products'][$p_id]['amount'] = fn_check_amount_in_stock($fp['product_id'], (($update == false) ? 0 : $_initial_amount) + $data['amount'], $data['product_options'] = null, $p_id, (!empty($data['is_edp']) && $data['is_edp'] == 'Y' ? 'Y' : 'N'), 0, $cart, $update == true ? $p_id : 0);
                    }

                }


            }

its work when adding product adding free producs. also second adding updating amount.

also delete with delete_cart_product hook

 

problem is:

when re calculate cart. free products getting site price.

also how can i disable if free product in cart disable adding ?

and how can i disable free product qty changer ?

how can i fix this ?

 

thank you bosses


Give Specific Free Product

18 January 2018 - 03:21 PM

hi i want give customers free products.

 

i am selling cell phone case. if customer order one iphone 7 case i want give one free screen protector.

amounts must be same 1-1 , 2-2 etc. and each product free products different.

also protectors will sell alone.

how can i do that ?

 

i check some product packages addons but its not packages