Post by aviatel » Sun Mar 01, 2015 3:36 pm

is a free extension wich can make this ?
i have try to do something : http://shop.eurosafe.ro/nada-momeli/groundbait-xl-2kg but when i chose 2 or 3 aroma type, in shopping cart value appear just for 1 aroma :( i mean if i chose 2 type aroma , price must be 2*21.5 RON... but in the cart display only 21.5 RON

another request is how i can do to have different shipping value, depends the cart value, ex: if value in shopping cart is 50-100 RON, shipping tax to be 25 RON, if value is 101-200 , shipping tax is 5 RON and if value is more than 200 RON, shipping tax to be Free ?

regards!

Attachments

checkbox.jpg

checkbox.jpg (63.77 KiB) Viewed 998 times


New member

Posts

Joined
Sun Feb 10, 2013 4:15 pm

Post by gedielson » Mon Mar 02, 2015 11:14 am

I don't succeed in add to cart to reproduce the issue, since the shop is in a subdomain and has no 'Access-Control-Allow-Origin', which is blocking the javascript loading.

http://gepeixoto.com.br


User avatar
New member

Posts

Joined
Wed Oct 01, 2014 7:37 am
Location - Brazil

Post by aviatel » Mon Mar 02, 2015 12:24 pm

Hi
What I must do ? Need to disable this? How to do? I'm a beginner in OC...

New member

Posts

Joined
Sun Feb 10, 2013 4:15 pm

Post by gedielson » Tue Mar 03, 2015 4:04 am

In your OC root directory, find ".htaccess" file (remove the ".txt" extension if it still have it) and just add the following line at the end:

Code: Select all

Header set Access-Control-Allow-Origin "*"
I don't know what security risk this can bring, since this allow any domain to retrieve content of yours. If someone with this knowledge can contribute...

But, anyway, this solve the blocked content loading.

http://gepeixoto.com.br


User avatar
New member

Posts

Joined
Wed Oct 01, 2014 7:37 am
Location - Brazil

Post by aviatel » Tue Mar 03, 2015 12:41 pm

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Header set Access-Control-Allow-Origin "*"

like this ?

New member

Posts

Joined
Sun Feb 10, 2013 4:15 pm

Post by gedielson » Wed Mar 04, 2015 7:36 am

Yes, this way.

http://gepeixoto.com.br


User avatar
New member

Posts

Joined
Wed Oct 01, 2014 7:37 am
Location - Brazil

Post by aviatel » Wed Mar 04, 2015 12:53 pm

ok
i have modify .... any ideea ?

New member

Posts

Joined
Sun Feb 10, 2013 4:15 pm

Post by gedielson » Thu Mar 05, 2015 7:24 am

Man, now the loading is being blocked by not allowed Access-Control-Allow-Headers. I'm not expert in this matter (CORS), sorry. I think that depending on server configuration, content sharing through (sub)domains can be very complicated. Here is some info about CORS: http://www.html5rocks.com/en/tutorials/cors/

Anyway, backing to the original issue, the product options only increase price value if you configure it. The options must be made to meet your needs. If you want the options to increase the product value, you must configure them for this. Did you?
Go to product edit page in admin, in Options Tab. In price column, check if you have selected the prefix + and typed the value that the option will increase in product value (in your case, the own product value).

There are situations where I don't want the options increase the product value.
Example: I want to buy a dress for my wife that costs 25 RON, with color options (checkboxes) blue, black, white and gold. If I check white and gold, OR, check blue and black, means that I want to buy a dress with these colors, and I will pay 25 RON (product value), not 50 RON (25 for each option).

Cheers

http://gepeixoto.com.br


User avatar
New member

Posts

Joined
Wed Oct 01, 2014 7:37 am
Location - Brazil

Post by aviatel » Thu Mar 05, 2015 12:32 pm

gedielson wrote: There are situations where I don't want the options increase the product value.
Example: I want to buy a dress for my wife that costs 25 RON, with color options (checkboxes) blue, black, white and gold. If I check white and gold, OR, check blue and black, means that I want to buy a dress with these colors, and I will pay 25 RON (product value), not 50 RON (25 for each option).

Cheers
correct !
but how to add 2 pcs, differnt SKU, lets say blue and black, in same time? and price to be 50 RON ?

thanks !

New member

Posts

Joined
Sun Feb 10, 2013 4:15 pm

Post by gedielson » Fri Mar 06, 2015 7:49 am

Sorry, what means "pcs" (I'm brazilian). But, if I understood, for your needs, you will have to change the options from "checkbox" to "radio", allowing the customer to choose only ONE option at a time. So, if I want 3 units of GroundBait XL 2 Kg, arome fruit bomb, I wil select (only) this option, type "3" in quantity and hit "Add to cart". In the cart will be added GroundBait XL 2 Kg -> fruit bomb X 3.
If I want other aroma, I can choose other option (e.g. Alltround), type my desired quantity (e.g. "1"), and hit again "Add to cart". Since the "add to cart" is done via ajax, the page isn't refreshed. Now, if I go to Cart, I will see:
GroundBait XL 2 Kg -> fruit bomb X 3 = 75 RON
GroundBait XL 2 Kg -> allround X 1 = 25 RON

Total = 100 RON.

Cheers

http://gepeixoto.com.br


User avatar
New member

Posts

Joined
Wed Oct 01, 2014 7:37 am
Location - Brazil

Post by aviatel » Fri Mar 06, 2015 11:54 am

pcs= pieces

thanks !

New member

Posts

Joined
Sun Feb 10, 2013 4:15 pm

Post by gedielson » Fri Mar 06, 2015 12:08 pm

Oh, so pcs = pieces, one more to my dictionary, LOL.

You are welcome.

http://gepeixoto.com.br


User avatar
New member

Posts

Joined
Wed Oct 01, 2014 7:37 am
Location - Brazil

Post by aviatel » Fri Mar 06, 2015 12:13 pm

welcome !
i have chose IMAGE option type....can chose just 1 aroma...

New member

Posts

Joined
Sun Feb 10, 2013 4:15 pm
Who is online

Users browsing this forum: No registered users and 28 guests