Jump to content

Kaper

Members
  • Posts

    62
  • Joined

  • Last visited

Everything posted by Kaper

  1. I was requested by some people for help how to set the cron. Here is my solution for the others, enjoy... Here is module with my changes. Download it bellow. (in the post) ++ /cache_default_attribute.php (if you are using different DB prefix than original PS_... don┬┤t forget to change it here) ++ /cron.php ++ /added public function cron() in ooscombinationchange.php To run the cron, use this URL: https://yoursite.com/modules/ooscombinationchange/cron.php?token=yourtokenhere123456789# If i helped you, say thanks, or you can give me a BEER ­čŹ╗ ooscombinationchange.zip
  2. @hakeryk2 Thank you bro for your solution and sharing the code! Appreciate it! ÔŁĄ´ŞĆ Working on 1.6.1.17 Maybe can you help how can achieve the same behavior also in /modules/blocksearch ? In Ajax search ? Thanks
  3. Anyone who can update the code to work with quantity discounts? Thanks
  4. Hello Guys, finally i get it working. But i have one issue, I am importing my stock every 24hours. The problem is, that even when stock quantity is changed via import script, the litespeedcache module ignore that the stock was changed, and products is still cached and isn┬┤t refreshed... So I need to clear cache with cron. Can you help me how? I have tried to make php script to flush smarty cache, but it seems that it is not working on my hosting. If I flush smarty cache via admin page, it also clear the litespeed cache and everything is well. Can anyone help with php script to flush lite speed cache please? Thanks
  5. Thanks everyone for contribution. This is awesome, but it has on drawback. Is it possible after changing img cover to open product also in selected color? FOr example, if i am filtering RED color SHOES, but some of the product listed have default combination BLACK, it will open this SHOES in RED color combination SELECTED ? Thanks
  6. I have the same problem, more than a week, no invoice, no reply. Is this real? ... @Vekia should reply at least here...
  7. Yes, i have noticed that... This is my PHP Settings: Is that okey? PHP VERSION 7.1
  8. I have checked it. It shows LiteSpeed server under my account. I have also checked via Chrome dev console, that header is showing something with module, but as i said, i don┬┤t know why. The debug header is not showing and also speed difference is almost 0 ... CATEGORY PAGE WITH 48 PRODUCTS: WITH CACHE: WITHOUT CACHE MODULE:
  9. Tested on Cloud STARTUP - Hostinger - no improvement ... Hmm. It looks like even when i enable cache, it is not caching, also debug is hidden ... Dunno why
  10. Oh, sorry... yes i have changed theese files. I am gonna take a look on it :). Nevermind. My bad
  11. What about this please? Using 1.6 PHP ERROR LOG: PHP Notice: Undefined variable: relative_protocol in MYSITE.com/modules/codwfeeplus/validate_functions/16123.php on line 351 PHP Notice: Undefined variable: ssl in MYSITE.com/modules/codwfeeplus/validate_functions/16123.php on line 354 PHP Notice: Undefined index: product_quantity_in_stock in MYSITE.com/modules/codwfeeplus/validate_functions/16123.php on line 371 PHP Notice: Undefined index: product_quantity_in_stock in MYSITE.com/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 54
  12. @sakgiok Hi, please can you help why {id_order} variable is missing in mail template (order_conf) after creating the order? When i resend the email tempalte ORDER_CONF , the variable is shown... Thanks, Where, if wich file i can insert it? Thanks,
  13. Hey guys, any solution for 1.6 ? I tried all codes here, and no one working as should ... Thanks!
  14. Hey guys, Please i need to show 1st / 2nd position of image (Default attribute) in product-list.tpl (PS 1.6) instead of product cover img ? Can you help how ? Thanks
  15. Hello guys, I would really appreciate if you can help me with following query. I am trying to set img cover of the default attribute, which is working fine. But it set the first img as cover by ID, not by position from ps_image table. I would like to have the img cover based on position from that table. Can you help? Thanks ÔÖą UPDATE ps_image SET cover = NULL; UPDATE ps_image_shop SET cover = NULL; UPDATE IGNORE ps_image SET cover = 1 WHERE ps_image.id_image IN ( SELECT ps_product_attribute_image.id_image FROM ps_product_attribute INNER JOIN ps_product_attribute_image ON ps_product_attribute.id_product_attribute = ps_product_attribute_image.id_product_attribute AND ps_product_attribute.default_on = 1 ); UPDATE IGNORE ps_image_shop SET cover = 1 WHERE ps_image_shop.id_image IN ( SELECT ps_product_attribute_image.id_image FROM ps_product_attribute INNER JOIN ps_product_attribute_image ON ps_product_attribute.id_product_attribute = ps_product_attribute_image.id_product_attribute AND ps_product_attribute.default_on = 1 ); UPDATE IGNORE `ps_image` SET `cover` = 1; UPDATE IGNORE `ps_image_shop` SET `cover` = 1;
  16. That┬┤s why i was asking for a cron. Because module itself checks products only if you install module or customer made an order.
  17. Hello, i see you have solved it, can you share please the code? Thanks (Using v 1.6)
  18. Any working solution for 1.6 guys? Thanks I can┬┤t get it to work properly ... I have used this code: <ul id="color_to_pick_list" class="clearfix"> {assign var="default_colorpicker" value=""} {foreach from=$group.attributes key=id_attribute item=group_attribute name=attributes} {assign var='id_image' value=0} {foreach from=$combinationImages item=combinationImage name=combinations} {if $smarty.foreach.combinations.iteration == $smarty.foreach.attributes.iteration} {assign var='id_image' value=$combinationImage.0.id_image} {/if} {/foreach} {*{assign var='img_color_exists' value=file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}*} <li{if $group.default == $id_attribute} class="selected"{/if}> <a href="{$link->getProductLink($product)|escape:'html':'UTF-8'}" id="color_{$id_attribute|intval}" name="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" class="color_pick{if ($group.default == $id_attribute)} selected{/if}" {*{if !$img_color_exists && isset($colors.$id_attribute.value) && $colors.$id_attribute.value}*}{if $id_image} style="background-image:url({$link->getImageLink($product->link_rewrite, $id_image, 'small_default')|escape:'html':'UTF-8'}); background-size:100%"{/if} title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}"{* {if $img_color_exists}style="background: url({$img_col_dir}{$id_attribute|intval}.jpg) repeat;"{/if}*}></a> </li> {if ($group.default == $id_attribute)} {$default_colorpicker = $id_attribute} {/if} {/foreach} </ul> And it shows as: Can you please help? ... Appreciate your time! Hope you are doing well
  19. Please is it possible to run cron? I need to run this every 10 minutes, because i am importing quantities every 10 minutes. Thanks ! /edit: i have solved it by myself, i added cron Thanks for your module btw
  20. Hello Guys, i need to add 2 custom COLUMNs with 2 buttons with different links ... I need just button with href="#id_product..." . Can you please help me how? I need link with ID product for example: https://page.com/adminer/...../ID_PRODUCT/... I need it as a shortcut to MYSQL querry trigger for OFF/ON product for backorder. OR: Another solution is, i need to help how can i add define variable -> ID_PRODUCT here in this function: public static function my_visibility_function($my_visibility_function) { if ($my_visibility_function == 'both') return '<span style="background-color : #0b9819; color : #ffffff; border-radius : 4px/4px; padding: 2px 3px 2px 3px;">&nbsp;Dostupn├ę&nbsp; '.$id_product.'</span>HERE WILL BE PRODUCT_ID'; elseif ($my_visibility_function == 'catalog') return '<span style="background-color : #009adf; color : #ffffff; border-radius : 4px/4px; padding: 2px 3px 2px 3px;">&nbsp;katal├│g&nbsp;</span>'; elseif ($my_visibility_function == 'search') return '<span style="background-color : #0020df; color : #ffffff; border-radius : 4px/4px; padding: 2px 3px 2px 3px;">&nbsp;vyh─żad├ívanie&nbsp;</span>'; else return '<span style="background-color : #6c6c6c; color : #ffffff; border-radius : 4px/4px; padding: 2px 3px 2px 3px;">&nbsp;Vypredan├ę&nbsp;</span>'; } Appreciate ÔÖą
  21. Thanks, but i don┬┤t care about 1.7 yet :). I have already found a solution ;).
  22. I have the same question. Can someone post solution how to display for example the first img thumbnail of each color combination? I think it should be possible... Thanks!
  23. Hello, Please I would like to know, why the module is saving following text/datas in the database??? Can i truncate this table? ps_codwfeeplus_transactions
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More