Jump to content

dataspotgr's Content

There have been 26 items by dataspotgr (Search limited from 13-Nov 18)



Sort by                Order  

#258609 Odd Product Page Error.

Posted by dataspotgr on 02 September 2016 - 06:33 AM in Developers' Corner

Any suggestions?

I have increase the memory from config file, I have optimized all the images...

When I see the products (10 items per page) the error comes up when I go from 5th to 6th page!




#258553 Odd Product Page Error.

Posted by dataspotgr on 01 September 2016 - 01:59 PM in Developers' Corner

In the server error log you see error message from app/lib/vendor/imagine/imagine/lib/Imagine/Gd/Image.php? Am I correct?

 

Yes.. I saw that from error log file, in root folder!




#258543 Odd Product Page Error.

Posted by dataspotgr on 01 September 2016 - 12:39 PM in Developers' Corner

9r62z8.png

When I go into the product tab in admin panel, it becomes like this. (the whole page) None of the buttons are functional and when I click 2-7, it becomes normal:

2m7uc78.png

When I try to go back to the first page, it gives me a:

ErrorOops, something went wrong (Internal Server Error). Please try again.


Also, I'm getting this error:
<!--
PHP Fatal Error
Message
Allowed memory size of 268435456 bytes exhausted (tried to allocate 72058049 bytes)
Error at
app/lib/vendor/imagine/imagine/lib/Imagine/Gd/Image.php, line: 617
Backtrace
-->
It goes away and comes back every few minutes. I do not know what the problem is.

EDIT: It seems like there is a ghost product in one of my categories I will try to remove it.
I deleted the product within the database and all seems ok now.

CONCLUSION
Uploading a large image ex:5000x5000 causes crashes.

 

 

Hello everone,

 

I am seeing exactly the s ame error! I have already increased the memory, clear cache and all these... What do you mean there was a ghost product and how you find it in the Database?

 

Futhermore, I am getting this error too, if I go from one page to another:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

 

I have double checked my images, and are not too big...

 

thanks in advance!




#258415 Display Short Description In Block "most Popular"

Posted by dataspotgr on 31 August 2016 - 10:38 AM in Store Design & Templates

Excellent! Thank you both for these information about schema and  the procedure of doing that!




#258280 Display Short Description In Block "most Popular"

Posted by dataspotgr on 30 August 2016 - 09:34 AM in Store Design & Templates

Note that in your example you use:


                            'extend' => array('description')

but we suggest to use:

                        'params' => array(
                            'extend' => array('description')
                        )

Did you try that?

 

I tried that, but I guess I had syntax errors! You are right, it is working correctly! Although, I would like to know more about not changing the core files, for obvious reasons! Thank you both for your help! I could not understand perfectly the link of #8 you gave me..and how to extend the scheme




#258234 Display Short Description In Block "most Popular"

Posted by dataspotgr on 30 August 2016 - 06:33 AM in Store Design & Templates

Please try. 

                    'manually' => array(
                        'picker' => 'pickers/products/picker.tpl',
                        'picker_params' => array(
                            'type' => 'links',
                            'positions' => true,
                        ),
                        'params' => array(
                            'extend' => array('description')
                        )
                    ),

(!) Not tested

 

I did try that. Unfortunatelly this not working! thanks anyway!!!


I would try this one #8 and tell you how this goes! thanks




#258153 Display Short Description In Block "most Popular"

Posted by dataspotgr on 29 August 2016 - 09:09 AM in Store Design & Templates

Hello there,

I would like something more about this one..sorry! I changed the block from most popular to 'manually' add products... And now the short description does not appar!

 

I insert the above code to manually block too, but it does not appear...

 

'fillings' => array(
                    'manually' => array(
                        'picker' => 'pickers/products/picker.tpl',
                        'picker_params' => array(
                            'type' => 'links',
                            'positions' => true,
                        ),
                        'extend' => array('description')
                    ),

                    'newest' => array(
                        'params' => array(
                            'sort_by' => 'timestamp',
                            'sort_order' => 'desc',
                            'request' => array(
                                'cid' => '%CATEGORY_ID%'
                            ),
                            'extend' => array('description')
                        )
                    ),

 

 

How could I do this to work?

thanks in advance!




#256920 Shipping Calulator

Posted by dataspotgr on 11 August 2016 - 11:01 AM in General Questions

Aah got it! there is exactly what I am looking for, in blocks: Add Block --> Create New Block --> Template (Block with a particular Template) and choose the right one!

 

:)




#256912 Shipping Calulator

Posted by dataspotgr on 11 August 2016 - 09:08 AM in General Questions

Hello,
 
I noticed in previous versions of cs-cart a block that you could calculate the shipping rates before you complete your order, as a block I would say..
 
I am using version 4.3.5, and I would like to know if there is something similar to this. For example, inside page of checkout with the four steps, to add a block of the right sidebar, that would say calculate shipping rates in order to user know how to pay! There is exactly what I need in  the cart page, if I click on "Change" link option and pop-ups a window that could select State, region, Postal Code and click on calculate!
 
Is there something like this? Could I use the shipping_rates.tpl file to a hook-block to accomplished that?
 
 
thanks in advance!

 

 

 




#256809 Display Short Description In Block "most Popular"

Posted by dataspotgr on 10 August 2016 - 06:48 AM in Store Design & Templates

short description is displayed correctly now! this is what I was looking for!! thank you all, for the help!

 

+ post up




#256755 Display Short Description In Block "most Popular"

Posted by dataspotgr on 09 August 2016 - 12:30 PM in Store Design & Templates

Unfortunatelly, I tried this but no luck... Exactly under this code for title:

 

<div class="ty-grid-list__item-name">
{if $item_number == "Y"}
     <span class="item-number">{$cur_number}.&nbsp;</span>
     {math equation="num + 1" num=$cur_number assign="cur_number"}
{/if}

{assign var="name" value="name_$obj_id"}
{$smarty.capture.$name nofilter}
                                                                                        
</div>

 

I did not give any prefix wrapper style to this block.. if that helps.. that's why I am using this tpl file (../grid_list.tpl)

 

Any other suggestion? thanks for reply anyway!




#256747 Display Short Description In Block "most Popular"

Posted by dataspotgr on 09 August 2016 - 11:08 AM in Store Design & Templates

Hello,

I have a block in Home Page with the "most popular" products in it. I have selected the Grid View for this block..

Now, I would like to display the short Description under the Title of the product!

 

So, inside file: templates/blocks/list_templates/grid_list.tpl

I am trying to grab this product description value, but nothing seems to displayed.. I saw the debugger too and still did not find this value..

 

I am trying something like:

 

{assign var="index_short_desc" value=$product.short_description}

 

{$index_short_desc}

 

 

Any suggestions, help? thanks!

 

*cs-cart version is 4.3.9




#243011 Custom Mysql(I) Query In Cs-Cart

Posted by dataspotgr on 15 February 2016 - 01:30 PM in General Questions

Thank you all for your answers and your help. I appreciated that! I think eComLabs is exactly the answer I am looking for!  I will give it a try, when I go back to office and let you know the results. thank you for your time




#242933 Custom Mysql(I) Query In Cs-Cart

Posted by dataspotgr on 13 February 2016 - 09:59 PM in General Questions

Not necessary in .tpl files. Let me explain  a bit more. I am looking the orders that I have in my e-shop through the cpanel of cs-cart, right? Let's say I have 10 orders from different persons...  Furthermore, I have two kinds of customers! I would like to know in which customer category belongs each of these 10 orders. If I click one of these orders to see more details, through the debug I can see every available information... order_info, auth an so on.. Inside the array of auth the usergroup_ids is always zero( array(0) ... and nothing more). The session array is referring on my login, not the customer I am looking at his/her order, right? So, inside the code of orders.tpl I can see the id of this user and wants to know about the usergroup_ids
I do not know... Maybe I am missing something? on the other hand, I will try what you said and come back to this post..

Thank you for your time!




#242900 Custom Mysql(I) Query In Cs-Cart

Posted by dataspotgr on 13 February 2016 - 09:42 AM in General Questions

Helllo there,
 
I am working on CPanel at orders section of cs-cart.. I would like to grab the usergroup_id of the current customer I am watching the order he/she maid.
 
So, I have this line of code inside tpl file:
 
{include file="common/usergroup.tpl" id=$order_info.user_id}
usergroup.tpl is a custom file that I have create. Now, in this file I would like to create a mysql_query in order to take the usergroup of this user ($order_info.user_id) for example 54.. I have this query:
 
$_usergroup = db_query('SELECT usergroup_id FROM cscart_usergroup_links WHERE user_id=$id');
 
{if $_usergroup == 3}
    hello!
{/if}
How can I do this query to work?
 
thanks in advance!

 




#240220 Php 5.5

Posted by dataspotgr on 14 January 2016 - 02:20 PM in General Questions

Hello all again,

 

I just read here in the forum another topic that said

 

"I should inform you that, unfortunately, PHP 5.4 is not supported by CS-Cart 2 as far as Smarty version 2.6.18 is used in it, which is not compatible with PHP 5.4. A lot of different problems may occur, so we recommend you to downgrade your PHP version to 5.3.x. or upgrade your store system to the latest version. CS-Cart 4.0.x/4.1.x supports PHP version 5.4."

 

here is the link:

http://forum.cs-cart...m-52-need-help/

 

So I guess, version 2.x.x is not supported via PHP 5.4




#240115 Php 5.5

Posted by dataspotgr on 13 January 2016 - 02:35 PM in General Questions

Hello all,

 

this issue can be solved if you make this change in your config.local.php file:

 

Old code:

error_reporting(E_ALL ^ E_NOTICE);
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
    error_reporting(error_reporting() & ~E_DEPRECATED & ~E_STRICT);
}

 

New code:

error_reporting(E_ALL ^ E_NOTICE);
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
error_reporting(error_reporting() & ~(E_DEPRECATED | E_STRICT));
}

 

in the beginning of the file...

 

Although if you have PHP version 5.5.x you will see some Warning messages at the categories products page.. or even in a specific product page..does not even load the page, probably because of timeout... 

 

Does anyone has this problem, too?

The version of this website is 2.2.5

 

 




#239683 Adding New Field In Cscart_Products Table Db

Posted by dataspotgr on 08 January 2016 - 07:58 AM in General Questions

Hello there,

    thank you for taking time to answer... I am not sure if I gave you to understand, or I don't... I have uploaded two images to help you out somehow.. Let's say I have picked up 20 products and want to Edit all these products together.. but there is not the new value of cscart_products I have inserted.

    How could I add new field in the file you are saying (global_update.tpl)? thank you for your time

Attached Thumbnails

  • screenshot_1.jpg
  • screenshot_2.jpg



#239627 Adding New Field In Cscart_Products Table Db

Posted by dataspotgr on 07 January 2016 - 10:14 AM in General Questions

Hello everyone

Happy new year! I wish you the best to everyone

 

I would like to ask about an issue I have.

I have added a new field in DB at cscart_products table, called avaliability

Now, I would like to change this value for more than one products!! So, I select the products I want and Edit selected, but in the pop-up there is not this new option I have added. So my question is how can I add this new option, in order to edit massive products at once?

 

thanks in advance




#237668 Free Add-On: [Wsa] Button Up

Posted by dataspotgr on 15 December 2015 - 07:31 AM in Third-Party Add-ons

Yes you are right! I have installed the ZIP module in my server, but still the scrolling up is not working.. I have opened a ticket to the WSA-team, but they do not answer me back yet!! if I have any news I will post it in case someone has the same issues.. Although, I will try to un-install the whole plugin both manually(all the files) and through the addons section and do it again!




#237571 V2.2.4 Product Tracking Bug? - Should Be Easy Fix?

Posted by dataspotgr on 14 December 2015 - 09:35 AM in Store Design & Templates

Hello there,

 

I am a little confused about what you want to do actually.. You do not want to have the "add to cart" function, because the product does not exist any more?, or you just want to erase the "in stock" label-text?

 

if you want to completely erase it (from all the products of your store) you can add this code to your css style file:

 

span[id^=in_stock_info_] {
        display: none;
    }

 

 

    Otherwise, if you are "Enable inventory tracking" through the Settings -> General -> Catalog(section), there is one more option inside this section "Show out of stock products".

    If you enable this checkbox, the products with 0 stock, will show up, but users can not buy these ones...But there is a link says "Add to wishlist" instead of buying...

    If you uncheck this value you will will not see these products at all.

 

 

Hopes that help!




#237561 Default Stock Display

Posted by dataspotgr on 14 December 2015 - 08:55 AM in Hints & Modifications

Hello there,

 

There is also an option inside: Setings -> General -> Catalog -> "Show out of stock products" you can check this checkbox, and you could see your items that have 0 stock, without "add to cart" functionality though!




#237437 Free Add-On: [Wsa] Button Up

Posted by dataspotgr on 11 December 2015 - 01:22 PM in Third-Party Add-ons

Hello,

Even when I tried to upload it there was an error...

"class ZipArchive not found... read more: https://php.net/manu....ziparchive.php"

 

So I upload the addon manually!

I am using firefox most of the time... I have also checked it in chrome

I could enable the addon to see it !

I mean that I can see the up arrow, but it does not have the onclick action to scroll up!




#237285 Cdn - Content Delivery Network

Posted by dataspotgr on 10 December 2015 - 01:17 PM in Third-Party Add-ons

thank you for your replies! I would like to test some of the CDNs that are avaliable..but not aws Amazon.. I will give it a try about cloudflare.com

 

have you ever try cloudflare.com and did you see any difference on loading times, YSlow e.t.c?




#237265 Free Add-On: [Wsa] Button Up

Posted by dataspotgr on 10 December 2015 - 10:44 AM in Third-Party Add-ons

Hello,

 

I have download this addon! The arrow shows up correctly and nicely! but there is an issue.. It does not scroll-up. i saw the error with firebug anad says: "TypeError: $.browser is undefined" (inside file scripts-....js - var/cache/.../.../)

 

We are using version 4.3.1. any suggestions or thoughts? thanks in advance