
Originally Posted by
Elemi
By variable I assume you mean LARGE_IMAGE_WIDTH and LARGE_IMAGE_HEIGHT? If so, they are both in the Westminster New template only.
Correct. Don't use the template so I'm flying a little blind here.
The error is telling you that some part of the cart needs to know how wide and how tall to make an image. If the request is part of the Westminster New template, then it should also have a define for those values as part of the template.
When you search with the Developer' toolkit, you should find at least two places where the variables show up. The most important should look something like
Code:
Line #28 : define('LARGE_IMAGE_WIDTH','500');
The line # and 500 may be different but, the link will tell you where the file is located.
If you don't see a define for each of these variables, that's the main problem. They may need to be added.
If you do see a define for them, you need to check that they have the single quotes (') correctly placed, that there's a number between the single quotes, and that there is nothing like PX or EM after the number.
If there is no define there, you may need to add them to your extra_definitions folder. To do this:
- Create a file called westminster_images.php.
- Add the text below to the file and set the defines of each. Might want to use 300 as a starting point.
- Save the file to your site in the includes/languages/english/extra_definitions/westminster_new/ folder of the shop, NOT the admin.
- You may need to add the westminster_new folder to the extra_definitions folder if it is not already there.
Code:
<?php
define('LARGE_IMAGE_WIDTH','300');
define('LARGE_IMAGE_HEIGHT','300');
Bookmarks