close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding shipping charge exemption for virtual products

Thread begun 5/20/2025 10:48 am by Roxana | Last modified 6/13/2025 9:33 am by Jay Core Global Media | 33 views | 3 replies |

Roxana

Adding shipping charge exemption for virtual products

I have tried hard to work on adding a shipping charge exemption with the assistance of ChatGPT. It was helpful to implement other changes, but not so much for this.

Most of our products are shipped, but we also have three virtual products. If only these are ordered, I need shipping to be zero.
But if virtual products and shippable products are ordered, I need shipping to be what is defined in the php file.

In one spot, shipping rules are set to true. I thought it would be easiest to put them in a conditional statement. Like if shippable = 1 for at least one product, then return the shipping as true.

The problem is that I don't know how to get the shippable value into the statement. It is not a session. It is just on value, that is either 0 for virtual products or 1 for shippable products. If I cannot use a value from the database, I can also use $articel, which is the item number. It is passed to the cart. That could be set to: if not these, return shipping.

Needless to say, I am not a coder. I get by with the help of code snippets and now also ChatGPT, but here I am stuck. Could I please get help with that?

Sign in to reply to this post

Jay Core Global Media

I Can Help

Hello Roxana I think I could help you with this. I would probably need your product page to take a look at first.

Sign in to reply to this post

Roxana

Thank you.

I saw the response just now.

This is the product page: https://segufixshop-germany.com/detail.php?recordID=71

Sign in to reply to this post

Jay Core Global Media

We need the code please

You would need to post the php page here or code so the community can help. If there is no weight or measurements for the product, it should return just zero from the shipping provider..

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...