|

Delivery time, warranty, shipping costs
Posted 13 August 2011 - 09:06 PM #1
Posted 13 August 2011 - 10:05 PM #2
As for the warranty, the only way to do that, would be to add a custom field. You would need to add a field in your database, in your admin, and in your customer side. There are quite a few posts on the forum about it. I've actually done a couple of those posts.
Obviously the best way would be to create an addon that would take care of this for you, but unfortunately, that is beyond my skill level. Your best bet here would be to talk to TonyB and have him do something for you. Alt-Team would be another great alternative to doing this. Either way, it is a pretty easy thing for either of them to do.
My skill level for this type of stuff is still in the mod level rather than a full addon, but it's the best I have to offer.
Just search around on the forum and I'm sure you'll find the posts. If not, just post back on here and I'll see what I can come up with.
Thanks,
Brandon
Posted 14 August 2011 - 04:12 PM #3
Changing the in stock in the languages doesn't do the trick since we have so many different delivery times on our products. In this case, we need to assign delivery times per product, for which the delivery time can vary over time.
Edwin
Posted 14 August 2011 - 06:50 PM #4
POPULAR
1.) Run this SQL command:
ALTER TABLE `cscart_products` ADD `del_time` VARCHAR(50) AFTER `product_code` ;
2.) In skins/basic/admin/views/products/update.tpl
After:
<div class="form-field"> {math equation="rand()" assign="rnd"} <label for="ccategories_{$rnd}_ids" class="cm-required">{$lang.categories}:</label> <div class="categories">{include file="pickers/categories_picker.tpl" rnd=$rnd data_id="categories" input_name="product_data[add_categories]" radio_input_name="product_data[main_category]" item_ids=$product_data.category_ids|default:$smarty.request.category_id hide_link=true hide_delete_button=true display_input_id="category_ids" disable_no_item_text=true view_mode="list"}</div> </div>
Add:
<div class="form-field"> <label for="del_time">Delivery Time:</label> <select name="product_data[del_time]" id="del_time"> <option value="a" {if $product_data.del_time|unescape == "a"}selected="selected"{/if}>---Select---</option> <option value="1 - 3 Days" {if $product_data.del_time|unescape == "1 - 3 Days"}selected="selected"{/if}>1 - 3 Days</option> <option value="3 - 5 Days" {if $product_data.del_time|unescape == "3 - 5 Days"}selected="selected"{/if}>3 - 5 Days</option> <option value="5 - 7 Days" {if $product_data.del_time|unescape == "5 - 7 Days"}selected="selected"{/if}>5 - 7 Days</option> <option value="More Than 7 Days" {if $product_data.del_time|unescape == "More Than 7 Days"}selected="selected"{/if}>More Than 7 Days</option> </select> </div>
3.) In skins/your-skin/customer/common_templates/product_data.tpl
After:
<span class="strong in-stock" id="in_stock_info_{$obj_prefix}{$obj_id}">{$lang.in_stock}</span>
Add:
{if $product.del_time} <span class="strong in-stock" id="in_stock_info_{$obj_prefix}{$obj_id}">and can be delivered in {$product.del_time}</span> {/if}
4.) To be able to export/import the field - In schemas/exim/products.php
After:
'Price' => array ( 'table' => 'product_prices', 'db_field' => 'price', 'convert_put' => array ('fn_exim_import_price', '@price_dec_sign_delimiter'), 'process_get' => array ('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'), ),
Add:
'Delivery time' => array ( 'db_field' => 'del_time', ),
A couple of things to note. First, I only put the 3 options for delivery time. If you want more, than just add them or change them. Also, you mentioned something about warranty periods. You could basically do the same thing as this, but just make it for the warranty stuff.
Oh, and this is for version 2.2.1. I think it should also work with previous versions just fine, but there might be some differences that I don't know about.
Anyways, hope it helps.
Thanks,
Brandon
Posted 04 October 2011 - 01:34 AM #5
Thanks for taking the time to write it.
Posted 09 October 2011 - 06:29 PM #6
1.) Run this SQL command:
ALTER TABLE `cscart_products` ADD `del_time` VARCHAR(50) AFTER `product_code` ;
Where do I do that?, and how do I do that?
Posted 20 November 2011 - 08:34 AM #7
Ok, here is a solution for the delivery time thing.
1.) Run this SQL command:ALTER TABLE `cscart_products` ADD `del_time` VARCHAR(50) AFTER `product_code` ;
2.) In skins/basic/admin/views/products/update.tpl
After:<div class="form-field"> {math equation="rand()" assign="rnd"} <label for="ccategories_{$rnd}_ids" class="cm-required">{$lang.categories}:</label> <div class="categories">{include file="pickers/categories_picker.tpl" rnd=$rnd data_id="categories" input_name="product_data[add_categories]" radio_input_name="product_data[main_category]" item_ids=$product_data.category_ids|default:$smarty.request.category_id hide_link=true hide_delete_button=true display_input_id="category_ids" disable_no_item_text=true view_mode="list"}</div> </div>
Add:<div class="form-field"> <label for="del_time">Delivery Time:</label> <select name="product_data[del_time]" id="del_time"> <option value="a" {if $product_data.del_time|unescape == "a"}selected="selected"{/if}>---Select---</option> <option value="1 - 3 Days" {if $product_data.del_time|unescape == "1 - 3 Days"}selected="selected"{/if}>1 - 3 Days</option> <option value="3 - 5 Days" {if $product_data.del_time|unescape == "3 - 5 Days"}selected="selected"{/if}>3 - 5 Days</option> <option value="5 - 7 Days" {if $product_data.del_time|unescape == "5 - 7 Days"}selected="selected"{/if}>5 - 7 Days</option> <option value="More Than 7 Days" {if $product_data.del_time|unescape == "More Than 7 Days"}selected="selected"{/if}>More Than 7 Days</option> </select> </div>
3.) In skins/your-skin/customer/common_templates/product_data.tpl
After:<span class="strong in-stock" id="in_stock_info_{$obj_prefix}{$obj_id}">{$lang.in_stock}</span>
Add:{if $product.del_time} <span class="strong in-stock" id="in_stock_info_{$obj_prefix}{$obj_id}">and can be delivered in {$product.del_time}</span> {/if}
4.) To be able to export/import the field - In schemas/exim/products.php
After:'Price' => array ( 'table' => 'product_prices', 'db_field' => 'price', 'convert_put' => array ('fn_exim_import_price', '@price_dec_sign_delimiter'), 'process_get' => array ('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'), ),
Add:'Delivery time' => array ( 'db_field' => 'del_time', ),
A couple of things to note. First, I only put the 3 options for delivery time. If you want more, than just add them or change them. Also, you mentioned something about warranty periods. You could basically do the same thing as this, but just make it for the warranty stuff.
Oh, and this is for version 2.2.1. I think it should also work with previous versions just fine, but there might be some differences that I don't know about.
Anyways, hope it helps.
Thanks,
Brandon
Posted 20 November 2011 - 08:53 AM #8
just found this and trying it out,not found the add-on yet after running it, will let you no when & if i fined how to activate it, or can you tell me were it can be found in admin Thanks Tony
Posted 20 November 2011 - 06:17 PM #9
If you followed the instructions, it should be fine even with the newest version.
Be sure to clear your cache after you are done.
Thanks,
Brandon
Posted 20 November 2011 - 06:43 PM #10
Ill try clearing the cache, you mentioned in the posts TonyB and the alt-team, for mods etc,
how do i contact them for future ref if i need any mods.
Tony
Posted 23 November 2011 - 03:58 PM #11
1.) Run this SQL command:
ALTER TABLE `cscart_products` ADD `del_time` VARCHAR(50) AFTER `product_code` ;
Where do I do that?, and how do I do that?
Any help please.
Tom
Hosting for less.
www.step2stephosting.com
Posted 26 November 2011 - 02:39 PM #12
Hey,
1.) Run this SQL command:
ALTER TABLE `cscart_products` ADD `del_time` VARCHAR(50) AFTER `product_code` ;
Where do I do that?, and how do I do that?
Any help please.
Tom
Can't help with that tom. I have the guy that built my site do it.
Posted 26 November 2011 - 02:44 PM #13
Since this isn't an addon, it isn't something that can be activated or deactivated. This is basically a hack.
If you followed the instructions, it should be fine even with the newest version.
Be sure to clear your cache after you are done.
Thanks,
Brandon
Posted 26 November 2011 - 02:51 PM #14
Got it on product pages in admin now, When I select one of the options and then click save it just resets its self to select and not show on front-end. any ideas on that please,or any other post with the same problem you
no of.
Thanks Tony
Posted 26 November 2011 - 04:10 PM #15
I have to address some missing features in CS-Cart. In today's e-commerce world not all products are actually in stock. For us, we state on the product page the delivery time (e.g. 1-3 days), the warranty (e.g. 1 year) and the shipping costs (this is on the product page).... Does anybody know how to tackle this and actually have these possibilities available. Some carts from competitors have this possibility to show delivery time on the product page.
We had an add-on for a shipping expectation message developed by ShippingKit. They decided to credit us the cost of the development and released it as a free add-on. You can set a shipping message at the category or product level in the admin. You can see examples of this on our site here and here. You might want to give this a try, ShippingKit does good work.
Posted 26 November 2011 - 05:01 PM #16
Hey,We had an add-on for a shipping expectation message developed by ShippingKit. They decided to credit us the cost of the development and released it as a free add-on. You can set a shipping message at the category or product level in the admin. You can see examples of this on our site here and here. You might want to give this a try, ShippingKit does good work.
Thank you, that workout for me.
Tom
Hosting for less.
www.step2stephosting.com
Posted 04 July 2012 - 05:42 PM #17
Jack
Posted 05 July 2012 - 08:33 PM #18
Posted 06 July 2012 - 01:34 PM #19
Posted 18 August 2012 - 07:27 PM #20
Does anyone have this download? I downloaded it from shippingkit but the tar/zip file is missing the Views folder.
Hey,
Did it work for you yet?
Tom
Hosting for less.
www.step2stephosting.com