Wellrad shop modification request
Moderator: Tata
Wellrad shop modification request
Hello CMSimplers,
I`m making a online shop for a friend of mine and wanted to do so with the wellrad plugin but while doing so i encountered some limitations making my quest a little harder unless someone .....
1 when editing a product there is a preview image which is fine but then only one image that will be shown on the detailed product page, I need to be able to put in 3 images, once saved these pictures have to appear on the productdetails.tpl
2 If inserting the image or preview image (edit product) would be nice to have a scale option max width / height for all images to achieve a certain consistency of all images
3 a zoom function to view a larger image of the one appearing on productdetails.tpl here the scale option could be handy.
If someone knows how to do this please let me know and i will try.
Thanks in advance to all for reading this i think it`s a nice adition to the wellrad plugin.
Greetings from spain
Gerepeer
I`m making a online shop for a friend of mine and wanted to do so with the wellrad plugin but while doing so i encountered some limitations making my quest a little harder unless someone .....
1 when editing a product there is a preview image which is fine but then only one image that will be shown on the detailed product page, I need to be able to put in 3 images, once saved these pictures have to appear on the productdetails.tpl
2 If inserting the image or preview image (edit product) would be nice to have a scale option max width / height for all images to achieve a certain consistency of all images
3 a zoom function to view a larger image of the one appearing on productdetails.tpl here the scale option could be handy.
If someone knows how to do this please let me know and i will try.
Thanks in advance to all for reading this i think it`s a nice adition to the wellrad plugin.
Greetings from spain
Gerepeer
Re: Wellrad shop modification request
hi,
ive been down the wellrad road before. the best thing i can suggest is to embed a shopping cart like ecwid into your site. its free and has a lot of features.
check ecwid out here. http://www.ecwid.com
here is a site i am working on, embedded within a modified version of cmsimple http://karencodycreative.com.au/?COLLEC ... I_PRECIOUS
ive been down the wellrad road before. the best thing i can suggest is to embed a shopping cart like ecwid into your site. its free and has a lot of features.
check ecwid out here. http://www.ecwid.com
here is a site i am working on, embedded within a modified version of cmsimple http://karencodycreative.com.au/?COLLEC ... I_PRECIOUS
Re: Wellrad shop modification request
Hi gerepeer, hi kweku,
There are other alternatives, e.g. opencart and Quick.Cart (this is no recommendation, but only a hint, as I have no experience with these systems).
Christoph
You can use own detail pages for each product instead of the one created by default. In the product "editor" you have to select the "Product Page" and you have to leave the "Description" empty. As these product pages are normal CMSimple pages, you can lay them out as desired. If you want to have a zoom function, you can use hi_fancybox. For resizing the images on upload you can use Uploader_XH or you can use the automatic thumbnail creation of KCFinder. Manual resizing of images after upload is possible with Ajaxfilemanager_XH.gerepeer wrote:If someone knows how to do this please let me know and i will try.
One should note that ecwid provides the shop as SAAS. If they're going to suspend or discontinue the service, the shop won't work anymore and probably all data (the items and their description) are lost.kweku wrote:the best thing i can suggest is to embed a shopping cart like ecwid into your site. its free and has a lot of features.
There are other alternatives, e.g. opencart and Quick.Cart (this is no recommendation, but only a hint, as I have no experience with these systems).
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: Wellrad shop modification request
Hello kweku and Christoph ,
Thank you both for replies, http://karencodycreative.com.au/?COLLEC ... I_PRECIOUS is not just semi precious MUY GUAPA (spanish)
http://www.ecwid.com looks very promising but i can understand cmb`s point of view besides i personally find it a bit slow (traffic back and forth) maybe it`s just my internet connection.
I like cmb`s option of the Product Page, did not think of this before. even though it`s a lot more work it provides solutions to the earlier encountered limitations.
I`ll give it a try.
Thank you both and keep up the good work.
Greetings from Spain,
Gerepeer
Thank you both for replies, http://karencodycreative.com.au/?COLLEC ... I_PRECIOUS is not just semi precious MUY GUAPA (spanish)
http://www.ecwid.com looks very promising but i can understand cmb`s point of view besides i personally find it a bit slow (traffic back and forth) maybe it`s just my internet connection.
I like cmb`s option of the Product Page, did not think of this before. even though it`s a lot more work it provides solutions to the earlier encountered limitations.
I`ll give it a try.
Thank you both and keep up the good work.
Greetings from Spain,
Gerepeer
Re: Wellrad shop modification request
Checkout this shop that was done with Wellrad: http://www.covermover.com/en/?Shop It has some of the features you are looking for. When you look at a detail page you can see that it is possible to enlarge certain picture of the product.
The necessary html code was directly added into the detail description of the Wellrad maintenance backend.
Best Regards,
Sordon
The necessary html code was directly added into the detail description of the Wellrad maintenance backend.
Best Regards,
Sordon
Re: Wellrad shop modification request
Hello cracks,
The shop is doing more or less what we want and how we wanted Thanks for all help and hints.
I will post a link as soon as it goes live, i only have one more question.
When adding a product to the catalog you can choose between available yes/no if yes the product is visible if no not
i would like to have this product to still be visible but without the order option maybe even with a sold jpg in its place does anybody know how to achieve this.
Thanks in advance,
Gerepeer
The shop is doing more or less what we want and how we wanted Thanks for all help and hints.
I will post a link as soon as it goes live, i only have one more question.
When adding a product to the catalog you can choose between available yes/no if yes the product is visible if no not
i would like to have this product to still be visible but without the order option maybe even with a sold jpg in its place does anybody know how to achieve this.
Thanks in advance,
Gerepeer
Re: Wellrad shop modification request
Hello Gereeper,
you'll have to do two things to achieve this:
Martin
you'll have to do two things to achieve this:
- open wellrad/classes/app/wrs_frontend_controller.php, search for the function productList() and change the line (~ 562) to
Code: Select all
$params = parent::productList(false);
After that all products will be displayedCode: Select all
$params = parent::productList(true);
- The next step is changing the templates "catalog.tpl" and "productDetails.tpl". Copy them from wellrad/templates/frontend/ to wellrad/theme/frontend and wrap the the <form>-element that contains the add-to-cart-button into an if-else-statement. . In catalog.tpl e.g. it might look like this:
Code: Select all
if ($product['isAvailable']) { // show button } else { // show something else }
Code: Select all
<?php /* new line: */ if ($product['isAvailable']) { ?> <form action="" method="post" > <?php if(isset($product['variants'])){ ?> <select name="wrsVariant"> <?php foreach($product['variants'] as $key => $variant){ ?> <option value="<?php echo $key; ?>"><?php echo $variant; ?></option> <?php } ?> </select> <?php } ?> <input type="text" size="2" style="display: inline; width: 1.5em;" name="wrsAmount" value="1" /> <input type="hidden" name="wrsTask" value="updateCart" /> <input type="hidden" name="wrsCategory" value="<?php echo $this->selectedCategory; ?>" /> x <input type="hidden" name="cartItem" value="<?php echo $index; ?>" /> <input type="submit" class="shopButton" name="" value="<?php echo $this->label('add_to_cart'); ?>" /> </form> <?php /* new line: */ } else { echo 'not available';} ?>
Martin
Re: Wellrad shop modification request
Juuhuu..
Thanks Martin works like a charm.
Gerepeer
Thanks Martin works like a charm.
Gerepeer
Re: Wellrad shop modification request
Hi all,
although much later than the date of the post, as I have had the need to change wellrad in such a way that the products were shown although not available replacing the "quantity/add" block with a "not available" notice , I've first changed "wrs_controller.php" removing:
( or simply commenting "{continue;}" )
Later, looking for any threads on this topic in the forum, I saw that in this post Martin suggested changing wrs_frontend_controller.php
from to
I tested the two solutions and both work.
I also have resolved "product.tpl" by an "if... else" condition evaluating the truth of "isAvailable".
But I realized that remained a vexing problem: the parameter "isAvailable" is perfectly functional in "product.tpl" but not correctly returned in "productDetails.tpl." It seems remaining set to the value of the last inserted product.
So I thought I would instead use this parameter reading it directly from the document "catalog.php" in "data" folder which, for each product, once written remains unchanged. Then, for "productDetails.tpl I've set the condition in this way:
All is working fine.
I imagine that someone could suggest an alternative solution, however my catalog seems to work without problems:
if a product is no longer available, the "add to cart" buttons are not displayed and replaced by a notice of the unavailability of the product. However, as for orders over a certain amount it's possible to reopen the production on demand (contacting the company directly), the detailed description of the product is shown again but yet without "add to cart" buttons.
although much later than the date of the post, as I have had the need to change wellrad in such a way that the products were shown although not available replacing the "quantity/add" block with a "not available" notice , I've first changed "wrs_controller.php" removing:
Code: Select all
if($collectAll === false && $product->isAvailable() === false){continue;}
Later, looking for any threads on this topic in the forum, I saw that in this post Martin suggested changing wrs_frontend_controller.php
from
Code: Select all
$params = parent::productList(false);
Code: Select all
$params = parent::productList(true);
I also have resolved "product.tpl" by an "if... else" condition evaluating the truth of "isAvailable".
But I realized that remained a vexing problem: the parameter "isAvailable" is perfectly functional in "product.tpl" but not correctly returned in "productDetails.tpl." It seems remaining set to the value of the last inserted product.
So I thought I would instead use this parameter reading it directly from the document "catalog.php" in "data" folder which, for each product, once written remains unchanged. Then, for "productDetails.tpl I've set the condition in this way:
Code: Select all
<?php
include WRS_BASE_PATH . 'data/catalog.php';
if($products[$this->uid]['stock_on_hand'] == '1'):
{
// show button, etc.
}
else {
// show something else
}
endif;
?>
I imagine that someone could suggest an alternative solution, however my catalog seems to work without problems:
if a product is no longer available, the "add to cart" buttons are not displayed and replaced by a notice of the unavailability of the product. However, as for orders over a certain amount it's possible to reopen the production on demand (contacting the company directly), the detailed description of the product is shown again but yet without "add to cart" buttons.
Milko
Re: Wellrad shop modification request
Hi Milko,
thanks for sharing your solution. Apparently, Martin's suggestion doesn't work for productDetails.tpl in the latest Wellrad version (1.2.1).
However, reading catalog.php again doesn't seem to be necessary, as one can access $this->product->stock_on_hand in productDetails.tpl, which is 0 or 1 (the latter meaning there are items on stock). So the code could be:
Christoph
thanks for sharing your solution. Apparently, Martin's suggestion doesn't work for productDetails.tpl in the latest Wellrad version (1.2.1).
However, reading catalog.php again doesn't seem to be necessary, as one can access $this->product->stock_on_hand in productDetails.tpl, which is 0 or 1 (the latter meaning there are items on stock). So the code could be:
Code: Select all
<?php if ($this->product->stock_on_hand):?>
// show button, etc.
<?php else:?>
// show something else
<?php endif;?>
Christoph M. Becker – Plugins for CMSimple_XH