The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 01-16-2012, 09:01 PM
Alastair Campbell's Avatar
Alastair Campbell is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Question

One product, millions of variations?


companycheck.co.uk sells credit reports on companies. So we have one product ( a credit report) on millions of UK companies - example here http://companycheck.co.uk/company/04386601

You will notice 50% of way down the page that we offer the credit report via Google or Paypal buttons.

What I would like to do is to have one 'buy now' button for the product that then creates a 'bag' so my visitors can buy more than one report at a time.

I have tried to do this here http://companycheck.co.uk/a1-test.php

But its a bit messy as it wants to display the whole cart including category etc etc

Is there a method to have a single buy now button, that creates the minicart/bag but also passes the variable through for the company name and id without having to create a product for each company - which would be impossible as there would be over 5million products....

Then visitors would browse around the companies adding to their cart at any time and then check out more than one report via Google Checkout or PayPal?

Thanks
The Following User Says Thank You to Alastair Campbell For This Useful Post:
Adrian Lawrence2 (08-11-2019)
  #2  
Old 01-17-2012, 01:12 PM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Alastair Campbell View Post
companycheck.co.uk sells credit reports on companies. So we have one product ( a credit report) on millions of UK companies - example here http://companycheck.co.uk/company/04386601

You will notice 50% of way down the page that we offer the credit report via Google or Paypal buttons.

What I would like to do is to have one 'buy now' button for the product that then creates a 'bag' so my visitors can buy more than one report at a time.

I have tried to do this here http://companycheck.co.uk/a1-test.php

But its a bit messy as it wants to display the whole cart including category etc etc

Is there a method to have a single buy now button, that creates the minicart/bag but also passes the variable through for the company name and id without having to create a product for each company - which would be impossible as there would be over 5million products....

Then visitors would browse around the companies adding to their cart at any time and then check out more than one report via Google Checkout or PayPal?

Thanks
Hello,

In order to display a single product widget in Ecwid, please follow the instructions given in this article:
http://kb.ecwid.com/w/page/23947713/...20by%20default

You can allow your customers to select or input a company name by the means of product options:
http://kb.ecwid.com/w/page/15853269/...our%20products

Please let me know if you have any questions regarding the mentioned Ecwid functionality.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
  #3  
Old 01-17-2012, 05:05 PM
Alastair Campbell's Avatar
Alastair Campbell Alastair Campbell is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Default

Is there anyway we can automate the prepopulation of the company details? Ideall we can grab the ID from the code on the page and 'hide' the option from the visitor?
  #4  
Old 01-18-2012, 10:18 AM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Alastair Campbell View Post
Is there anyway we can automate the prepopulation of the company details? Ideall we can grab the ID from the code on the page and 'hide' the option from the visitor?
Could you clarify a little more what is required? What page, what ID and what option do you mean?
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
  #5  
Old 01-18-2012, 11:20 AM
Alastair Campbell's Avatar
Alastair Campbell Alastair Campbell is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Default

each company has an id. so i would like to have a buy now button for each company webpage (they are unique by company id for example - http://companycheck.co.uk/company/07391869)

and the basket widget on each page

i need to know what they are buying so i need to soft code the company name and id into the button uniquely to each button?
  #6  
Old 01-19-2012, 03:47 PM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Alastair Campbell View Post
each company has an id. so i would like to have a buy now button for each company webpage (they are unique by company id for example - http://companycheck.co.uk/company/07391869)

and the basket widget on each page

i need to know what they are buying so i need to soft code the company name and id into the button uniquely to each button?
Thank you for the explanation. It is certainly possible to get what you want in Ecwid. However, it will require some coding.

First, you will need to create a product option with 'Text field' type for storing a company ID and/or its name. By default, the input field will be visible to customers and they will be able to put any text in it. However, you can hide it. Since you use the single product widget for displaying the product on your site, you can directly edit the HTML code of the product option so it will be hidden. When you copy it from the product details page in your control panel, the product option code will look like this:
Code:
<label class="ecwid-fieldLabel" for="ecwid-productoption-(product ID)-(option name)">(Option name)</label>
<input type="text" class="gwt-TextBox ecwid-productBrowser-details-optionTextField ecwid-productoption-Company" id="ecwid-productoption-(product ID)-(option name)" maxlength="200">
In order to make it hidden you should remove the label and change the input type to 'hidden':
Code:
<input type="hidden" class="gwt-TextBox ecwid-productBrowser-details-optionTextField ecwid-productoption-Company" id="ecwid-productoption-(product ID)-(option name)" maxlength="200">
Then you will need to fill the hidden field with a company ID and/or a name, which, as you mentioned, can be grabbed from the code of the page. It can be done with a simple JS code on the product pages. Since the hidden input element has an identifier, a custom script can find and fill it. The corresponding code looks like this:
Code:
<script>
document.getElementById('ecwid-productoption-(product ID)-(option name)').value = '(here goes a company ID and/or name)';
</script>
This way when a customer adds a product to the cart, the selected company will be listed in the cart details. In order to disallow changing the product options in the cart, you will need to hide them there. A simple code in your custom CSS theme can do it:
Code:
div.ecwid-productBrowser-cart-optionsList {
  display: none;
}
The described solution will allow you to store necessary info about selected company in the order details.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
integration, multiple variations

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:38 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.