Page 1 of 1

Shopping Cart error

Posted: Mon Oct 05, 2020 6:44 pm
by Reddieng
I'm following the tuitorial of adding a shopping cart to my site.

I downloaded the sample shop project, adapted it to mu requirements and got the error:

Fatal error: Uncaught Error: Cannot use string offset as an array in /homepages/1/d284770181/htdocs/RLHM/Shop/cart.php:48 Stack trace: #0 /homepages/1/d284770181/htdocs/RLHM/Shop/cart.php(16): AddToCart() #1 {main} thrown in /homepages/1/d284770181/htdocs/RLHM/Shop/cart.php on line 48

I then tried the unmodified shop project and got the same error.

Not being that techical I've no idea where to sart looking. I did check my php version in page propeties and its set tp php5 -php7

Where do I start looking please

Re: Shopping Cart error

Posted: Mon Oct 05, 2020 8:02 pm
by Pablo
The script in the webshop tutorial was created a long time ago for PHP5. So, if you use PHP7 then you may need to tweak it a little bit.

Re: Shopping Cart error

Posted: Mon Oct 05, 2020 9:54 pm
by Reddieng
Thank you for the suggestion but that is beyond my ability.

Is there any cahnce of it being updated?

Re: Shopping Cart error

Posted: Mon Oct 05, 2020 10:09 pm
by Reddieng
Futher to the above, has any one got a basic shopping product/buy/cart/customer details/pay example/tutorial that works on veriosn 16 they could share with me?

Re: Shopping Cart error

Posted: Mon Oct 05, 2020 11:05 pm
by BaconFries
Is there any cahnce of it being updated
The script / tutorial was created Wed Jun 27, 2007 5:21 pm and has remained the same so I doubt it will be updated.
Something to read over

How to create a webshop with WYSYWYG Web Builder?
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=57726
Creating a basic PayPal Shopping Cart
https://www.wysiwygwebbuilder.com/forum ... =39&t=4508

Re: Shopping Cart error

Posted: Tue Oct 06, 2020 3:58 am
by GrahamW
I have a mals ecommerce extension here
https://www.shop.grahamscomputers.net/w ... ite-1.html
There is a demo of it and it integrates with paypal, all very easy to setup and lots of options for the look on your site

Graham

Re: Shopping Cart error

Posted: Thu Oct 08, 2020 3:59 pm
by Reddieng
Thanks for the suggestions Guys,

GrahamW, I assume that Mals allows UK pounds etc.?

Re: Shopping Cart error

Posted: Thu Oct 08, 2020 4:49 pm
by mfirlotte
If you're from the UK, one of your compatriots offers a shopping cart that I have used for some time now. Both simple/PayPal and Pro versions (PayPal + credit cards + dynamic with database). I have used both (I recently upgraded from the simple version to Pro) and both integrate well with WYSIWYG as they are NOT extensions but rather code inserted into WYSIWYG HTML objects.

https://www.vibralogix.com/

Re: Shopping Cart error

Posted: Thu Oct 08, 2020 5:21 pm
by crispy68
Hey Mitch,

Do you have any live examples using the cart? I looked at there examples on their site but I didn't get a really good handle on how it should look. I wish their demo look more like what a shopping cart site would look like. What it appears to me that this only for the cart portion and nothing else. The list of products and the product page info itself is left up to you to design and create on your own correct?

Re: Shopping Cart error

Posted: Thu Oct 08, 2020 7:31 pm
by zinc
Hey Mitch I too Echo Ron's question. I am very keen on this Cart Pro but not sure yet...

Re: Shopping Cart error

Posted: Thu Oct 08, 2020 9:48 pm
by mfirlotte
This is my wife's site that I manage for her.

https://nailz.firlottecreations.com/

Products are under the SHOP menu.

Yes...you are correct. VibraCart manages the product and not the product page. Here's a product page:
https://nailz.firlottecreations.com/p001.html

And here's an image of the same product page in WYSIWYG:
https://nailz.firlottecreations.com/p00 ... -image.JPG

What I like about it is the Pro version is dynamic (database). It comes with an Admin Portal and I enter into the database the Title, Price, Product options, etc and it dynamically creates the buttons. If I need to change the price, title, or buttons or button options, I do it in the Admin Portal and the page takes care of itself.

It also has a load of other features.

Add a product to the cart and you'll see what the cart looks like. It also manages the taxes (Europe, USA, and Canada), shippings, and has so many discount options and choices.

Re: Shopping Cart error

Posted: Fri Oct 09, 2020 6:34 am
by zinc
This looks good... esp the admin site...

Do you have total control over the look & feel of it?

Re: Shopping Cart error

Posted: Fri Oct 09, 2020 6:45 am
by zinc
mfirlotte wrote: Thu Oct 08, 2020 4:49 pm If you're from the UK, one of your compatriots offers a shopping cart that I have used for some time now. Both simple/PayPal and Pro versions (PayPal + credit cards + dynamic with database). I have used both (I recently upgraded from the simple version to Pro) and both integrate well with WYSIWYG as they are NOT extensions but rather code inserted into WYSIWYG HTML objects.

https://www.vibralogix.com/
I am based in the UK and very keen on this. Can you do me a favour? Can post a snippet of the code that you would insert as HTML object ? Really keen to find a e-com solution with a backend for a several projects that I am working on....

Cheers Z

Re: Shopping Cart error

Posted: Fri Oct 09, 2020 12:03 pm
by mfirlotte
Zinc...yes...total control over look and feel. My site uses the embedded mini cart but there are 2 other cart types to choose from. The 3 types are demo'ed on the VibraLogix site. And their support is simply awesome. They have answered every question for me very quickly. Great support!!!

Here's snippet for the product TITLE:
<div style="text-align: center;">
<span style="color:black; font-size:35px; font-weight: bold;">
<span data-vc-type="description" data-vc-id="P001"></span>
</span>
</div>

And here's the snippet for the 5 product option buttons on that page:
<form class="vcaddtocart">
<div data-vc-type="addtocart" data-vc-id="P001" data-vc-currency="CAD"></div>
<input type="submit" class="vcbuybutton" value="VC BUTTON">
</form>

It's all DYNAMIC!

Best part is you do not have to code it yourself. From the product page in Admin Portal, there are Copy Snippet buttons so you just have to paste it into the HTML object.

Re: Shopping Cart error

Posted: Fri Oct 09, 2020 12:06 pm
by zinc
Nice one Mitch... I shall be checking this out and perhaps pecking your brain in the process... :D

Re: Shopping Cart error

Posted: Fri Oct 09, 2020 12:11 pm
by mfirlotte
NO problem Zinc. Adrian...the owner at VibraLogix is an awesome fellow and responds quickly to all questions.

Re: Shopping Cart error

Posted: Fri Oct 09, 2020 1:34 pm
by zinc
mfirlotte wrote: Fri Oct 09, 2020 12:11 pm NO problem Zinc. Adrian...the owner at VibraLogix is an awesome fellow and responds quickly to all questions.
Cheers!

Re: Shopping Cart error

Posted: Thu Oct 15, 2020 11:45 pm
by fiik
Another shopping cart option is to use ECWID https://www.ecwid.com/

Wysiwyg has extensions for ECWID or you can get the code snippets direct from ECWID and use Wysiwyg HTML object to put on the page

Upside to ECWID, all the products and prices are managed online on their site, you get the benifit of a site that already has checkout options, shipping, social media integrations, and multiple product options and variations that may or may not alter pricing.

Downside is that it is of course a paid platform, first 10 products are free, but you must pay after that. (although it is not as pricey as some of the other platforms such as Sh...ify)