chrometweaks.org

Can anyone recommend a good blog and/or free iPage web host?

Click Here To View All Answers...


My first question is Can anyone recommend a good blog and/or free iPage web host? Thanks in advance for any response. Second question.. I need to disable shipping on items that have a specific attribute assigned to them. I do NOT wish to use the fix for this by assigning these products as download items, because it wont work for me.... Has anyone successfully implemented this into their store? I need some help, and it seems like if I could just put a simple javascript in somewhere to say:.

If product_attribute = noshipping.

Then "dont display shipping options".

Any help is greatly appreciated!.

Thanks in advance.....

Comments (10)

Of course! but... you might want to make sure and wait for another member here to confirm my answer as I am not very confident. Better yet, why don't you ask the iPage guys because they can give you an answer better...

Comment #1

I should be starting work on a similar module next week. My specific need is to only allow 1 day shipping on certain items. A flag that functions this way should be easy to modify and disable all shipping...

Comment #2

I found this code in check_shipping.php it might be helpful.

// if the order contains only virtual products, forward the customer to the billing page as.

// a shipping address is not needed.

If ($order->content_type == 'virtual') {.

If (!tep_session_is_registered('shipping')) tep_session_register('shipping');.

$shipping = false;.

If (!tep_session_is_registered('sendto')) tep_session_register('sendto');.

$sendto = false;.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

}..

Comment #3

In checkout_shipping.php find:.

$free_shipping = false;.

If ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {.

$free_shipping = true;.

Include(DIR_WS_LANGUAGES$language'/modules/order_total/ot_shipping.php');.

}.

} else {.

$free_shipping = false;.

}.

And change to:.

$free_shipping = false;.

If ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {.

$free_shipping = true;.

Include(DIR_WS_LANGUAGES$language'/modules/order_total/ot_shipping.php');.

}.

If ($total_weight == 0).

{.

$free_shipping = true;.

}.

} else {.

$free_shipping = false;.

}.

For weight set to zero items..

This post has been edited by.

Yesudo.

: 21 October 2004, 01:26..

Comment #4

This code is found on line 50 of checkout_shipping.php. When the if statement is true the globals: $shipping and $sendto are set to false and the customer is sent to the billing page. This shuts down all shipping information on the order..

// if the order contains only virtual products, forward the customer to the billing page as.

// a shipping address is not needed.

If ($order->content_type == 'virtual') {.

If (!tep_session_is_registered('shipping')) tep_session_register('shipping');.

$shipping = false;.

$sendto = false;.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

}..

Comment #5

I need to disable shipping on items that have a specific attribute assigned to them. I do NOT wish to use the fix for this by assigning these products as download items, because it wont work for me.... Has anyone successfully implemented this into their store? I need some help, and it seems like if I could just put a simple javascript in somewhere to say:.

If product_attribute = noshipping.

Then "dont display shipping options".

Any help is greatly appreciated!.

Thanks in advance.....

Comment #6

I have been looking at this. So far I have not found a clean single point fix.. I was told that setting the product weight to zero would fix this however that does not seem to work. You mentioned that assigning the product as a downloadable item would eliminate shipping. How do you do that? If this is effective, we may be able to trace the code and see how it is done there..

Otherwise a method that I am looking at would be to redirect the user around checkout_shipping.php. I still have some redirection issues related code like this in checkout_payment.php.

// if no shipping method has been selected, redirect the customer to the shipping method selection page.

If (!tep_session_is_registered('shipping')) {.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

}..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.