I want to show large image in checkout page right now it showing 31×31 size image in wpsc-shopping_cart_page
and using <img src="<?php echo wpsc_cart_item_image(); ?>
to call thumbnail image.
what should i do for that?
I want to show large image in checkout page right now it showing 31×31 size image in wpsc-shopping_cart_page
and using <img src="<?php echo wpsc_cart_item_image(); ?>
to call thumbnail image.
what should i do for that?
You must be logged in to post a comment.
I agree with Goran on editing the core files. It should not be done. But, if a user has dimensions in the name of the image, they will also be replaced and the image won’t display with this regular expression. Instead, you can create a new function in your theme’s functions.php file. Something like this:
Then, make sure you copy wpsc-shopping_cart_page.php to your theme directory and replace
with
Or, use a regular expression that gets the last instance of an image size.
I suggest you not to hack core files because of updates.
Rather transfer WPEC files to your theme folder and then in wpsc-shopping_cart_page.php file add following above image call
then call original image with
<?php echo $image; ?>
regards
here is the solution i find myself with just 4 easy step