|
9 Aug
|
Posted by Greg Nicholl
|
Comments Off
|
One website customer that I met recently wanted an eCommerce site to sell health food products. It seems that Herbalife allows their
independent dealers to see products from a website as long as the prices are visible only to logged in members. After some Internet search I found that it is possible to show different HTML content to those who are logged in vs those who are not. The use if a simple PHP If/Else statement allows one to keep certain information only for logged in members.
The $logged variable is used to set the condition which will be be used depending on whether or not the visitor is logged in. By using the statement below the designer or developer has the power to show an alternative HTML content intended only for those who are logged in.
{if $logged} code for logged in
{else} alternative code
{/if}This information was not easily found in the Internet. The info was posted in the forums at prestashop.com. The man who posted this tip had attached some example Smarty templates to show how he had used this. The attachments had been pulled down and led to an error page. I had to do some digging around but was able to find the necessary steps in order to hide product prices from visitors until they log in. The fix is needed on most of the Smarty templates called product, product_list, product_comparison and a variety of product related pages and the template entitled homefeatured.
This tip is not rated for the beginner; I would rate it as an 8 on a scale of 1 – 10. Although I will say that none of my trial-and-error actions resulted in any permanent harm to the site. Be sure that you keep a good copy of each page to replace it if you foul it all up. Most of the time I simply change the name of the original by adding a couple of extra (xx) at the beginning of the file name. You can always delete the mistake and change the saved file back to the original name. I was pleased, at the end, that I had modified the site to accommodate the customer. I had changed the site so that product prices were hidden to all but the logged in members.
Pursuing All Things Web
| Category: Ecommerce | Tag: alternative content, ecommerce, hide content, hide prices, PrestaShop |
|
27 Jul
|
Posted by Greg Nicholl
|
Comments Off
|
In June of this year Carmen Quiroz won our contest for a free website. Carmen and her mother Maria have a Herbalife business and have been using Amazon.com to sell their products. Carmen informed me that she would like an Ecommerce site in order to sell the Herbalife and Organo products. The next few weeks involved a pleasant journey to the fulfillment of her dreams.
Prestashop was the tool of my choice to build the online shop. Prestashop is an award winning PHP Ecommerce script which is lite, stable and uses the Smarty Template system. Prestashop comes loaded with plenty of modules to display your products, feature best sellers, accommodate customers and to make use of the payment gateway of your choice (PayPal and Google are quickly available).
Carmen and Maria had some special requirements. They have a clientele which is mainly Hispanic and so they wanted the site to include Spanish as the default language and translation available for English. Translation is easy with Prestashop and I used the Lingoes translation tool to complete the translation. They wanted a Forum and suggested a Bulletin Board which they had heard of. However I found a free Module called SimpleForum which makes use of the IntenseDebate Forum Service. This is a great little forum which is hosted as a service and allows one to have a forum without using a Database. I found it easy to set up, the module was just an additional PHP page and a TPL template in the themes folder. It is a robust and workable solution and a good alternative to setting up a script to run your forum.
The process took us about 6 to 7 weeks and was completed with a minimum of trouble and about 14 emails. I am turning offer the keys to Carmen and Maria this week and have installed about 12 products to help them get started. Visit their shop, Maxima Nutricion and see the great Herbalife and Organo products that they host.
Pursuing All Things Web
| Category: Ecommerce | Tag: ecommerce, Free Website, PrestaShop |
|
3 Dec
|
Posted by Greg Nicholl
|
When I began my search for a shopping cart I first looked at Zen Cart since I had had a little experience with it before. I find that Zen Cart looks a little bit stale by modern standards. It is noted as a very respectable and stable PHP shopping cart. However, there are few free templates available in the Zen Cart community. Most of what I’ve seen didn’t seem to meet the style demands that I was looking for. Granted, I could adjust templates and CSS in order to make it look better. I was not in the mood for that sort of work at the time. Zen Cart has a lot of nice features but the back end and catalog system seems overly complicated. In my opinion, it could take the newbie quite a bit of time to get used to the features of the Zen Cart back end. I decided not to go any further with Zen Cart.
I began to do some research and I came across a newer offering called Magento. Magento is starting to get a lot of acclaim. It is a very full featured Shopping Cart, Click to continue »
Pursuing All Things Web
| Category: Ecommerce | Tag: ecommerce, ecommerce shopping carts, Open Source Shopping Carts, PHP Shopping Carts, PrestaShop |



