Page 1 of 1

Questions about ordering with CMSMS module

Posted: Sat Jul 04, 2015 1:24 am
by scubindu
Hello everybody.

I'm currently building my first e-commerce website. I used the modules products, cart and orders but without paiement option. People can add articles to their cart, and confirm the reservation by filling up billing and shipping informations. After confirmation, they get an email saying that the reservation is confirmed and that the owner will contact them asap for shipping and payment options. It works but I still have a few issues :

-The client confirmation mail works but the admin doesn't receive a confirmation mail with the order. I configured CMSMailer and I put the email in the configuration pannel of the e-commerce module.

-I want to put an image from the article in the cart. here is my code :

Code: Select all

<img src="{$oneitem->file_location}/{$oneitem->fields.image->thumbnail}" alt="{$oneitem->value}" />
The path is right to the / but he doesn't find the image in the product folder. I don't understand why. I need to get that :

Code: Select all

<img src="/uploads/Products/product_1/thumb_mobilier_table_appoint.jpg" alt="">
but I only get that :

Code: Select all

<img src="/uploads/Products/product_1/" alt="">
-For some products, I want to have more than one image, so that I have a little photo gallery with 2 or 3 images and the possibility to zoom in each image. How can I do that? With the photo gallery module? And how can I integrate it in the products module?

Thanks!
Ads: Dịch vụ fpt bao gồm Truyền hình FPT với kho phim chuẩn HD miễn phí, dịch vụ đăng ký internet tại nhà, truyền hình tương tác xem lại giúp các bạn không bỏ lỡ những chương trình mà bạn yêu thích, trực tiếp giải bóng đá ngoại hạng Anh, âm thanh 5.1, độ nét cao, tiếng anh cho trẻ em, nhạc số, phim hoạt hình dành cho thiếu nhi, ngoài ra chúng tôi còn chuyên cung cấp dịch vụ lắp mạng fpt biên hòalắp mạng fpt hạ longlắp mạng fpt đà lạt cùng với các thiết bị đầu thu FPT nhỏ gọn mang cả thế giới giải trí đến tivi nhà bạn. Đăng ký lắp đặt Truyền hình FPT ngay hôm nay để nhận những khuyến mãi hấp dẫn. khi lắp mạng fpt huếlắp mạng fpt quận 7lắp mạng fpt quận 8 bạn sẽ nhân được thông tin khuyến mãi Khách hàng đã có đường truyền internet của FPT muốn được trải nghiệm Box demo.

Re: Questions about ordering with CMSMS module

Posted: Mon Jul 06, 2015 8:56 am
by velden
scubindu wrote: -I want to put an image from the article in the cart. here is my code :

Code: Select all

<img src="{$oneitem->file_location}/{$oneitem->fields.image->thumbnail}" alt="{$oneitem->value}" />
The path is right to the / but he doesn't find the image in the product folder. I don't understand why. I need to get that :

Code: Select all

<img src="/uploads/Products/product_1/thumb_mobilier_table_appoint.jpg" alt="">
but I only get that :

Code: Select all

<img src="/uploads/Products/product_1/" alt="">
try

Code: Select all

<pre>{$oneitem->fields|print_r}</pre>
or

Code: Select all

<!-- {$oneitem->fields|print_r} -->
to see what properties are available.

You could(/should?) use a module like CGSmartImage to generate a custom sized thumbnail from the large image.
-For some products, I want to have more than one image, so that I have a little photo gallery with 2 or 3 images and the possibility to zoom in each image. How can I do that? With the photo gallery module? And how can I integrate it in the products module?
Guess you could add custom field definitions and let users upload more images. Then in you template logic check if those fields are set and generate the html needed for the javascript plugin of your choice.