redSHOP:Tips and tricks

From redWIKI
Jump to: navigation, search

This page contains answers to the most common questions of redSHOP site developers.

Contents


Frequent Asked Questions

Incorrect thumbnail size (for redSHOP 1.2 or previous releases)

Sometimes after updating the component or maybe due to a change in the template you may notice that the product thumbnails have a wrong size. To fix this issue and rebuild all your thumbnails follow this steps:

Manual Process:

  1. go to redSHOP -> Configuration -> Categories -> Proportional -> Image settings -> resizing and set it to YES
  2. using an FTP software go to components/com_redshop/assets/images/product/thumb/ and delete all the thumbnails contained inside this folder
  3. reload the product page and you should see now the thumbnail in the right size

Automatic Process:

  1. Apply following patch and thumbnail will automatically deleted when configuration setting will change.

Proportional Image Size patch file https://gist.github.com/gunjanpatel/5765018

Thumnail info.png

Known Issues

Parse error: syntax error, unexpected '<' redshop.cfg.php

If you get an error in admin or frontend like this:

Parse error: syntax error, unexpected '<' in /administrator/components/com_redshop/helpers/redshop.cfg.php on line 367

How to fix it

You can fix it in the following way:

* CASE 1:

[...]
365   define ('NEWSLETTER_MAIL_CHUNK', '1');
366   define ('NEWSLETTER_MAIL_PAUSE_TIME', '1');
367   <?php
368   
369   define('UPDATE_MAIL_ENABLE', '1');
370   define('DISPLAY_STOCKROOM_ATTRIBUTES', );
371   ?>

* CASE 2:

[...]
365   define ('NEWSLETTER_MAIL_CHUNK', '1');
366   define ('NEWSLETTER_MAIL_PAUSE_TIME', '1');
367   ?>define('UPDATE_MAIL_ENABLE', '1');
369   define('DISPLAY_STOCKROOM_ATTRIBUTES', );

How to fix CASE 1

365   define ('NEWSLETTER_MAIL_CHUNK', '1');
366   define ('NEWSLETTER_MAIL_PAUSE_TIME', '1');

367 <?php

368   
369   define('UPDATE_MAIL_ENABLE', '1');
370   define('DISPLAY_STOCKROOM_ATTRIBUTES', );
371   ?>


[...]
365   define ('NEWSLETTER_MAIL_CHUNK', '1');
366   define ('NEWSLETTER_MAIL_PAUSE_TIME', '1');
367   define('UPDATE_MAIL_ENABLE', '1');
368   define('DISPLAY_STOCKROOM_ATTRIBUTES', );
369   ?>

How to fix CASE 2

[...]
365   define ('NEWSLETTER_MAIL_CHUNK', '1');
366   define ('NEWSLETTER_MAIL_PAUSE_TIME', '1');
367   ?>define('UPDATE_MAIL_ENABLE', '1');
369   define('DISPLAY_STOCKROOM_ATTRIBUTES', );


[...]
365   define ('NEWSLETTER_MAIL_CHUNK', '1');
366   define ('NEWSLETTER_MAIL_PAUSE_TIME', '1');
367   define('UPDATE_MAIL_ENABLE', '1');
368   define('DISPLAY_STOCKROOM_ATTRIBUTES', );

Now your redSHOP should be back working normally.

Cause

This issue is caused by a wrong behavior of redSHOP in versions 1.2 and 1.3 on saving configuration. Version 1.3.1 fixes this issue.

Back to redSHOP:Table_of_Contents

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox