clockworkgeek / magento-guest-cookies Goto Github PK
View Code? Open in Web Editor NEWRecord cart contents and viewing history in cookies for anonymous guests.
Record cart contents and viewing history in cookies for anonymous guests.
I noticed that Clockworkgeek_Guestcookies_Block_Onepage_Shipping extends Mage_Checkout_Block_Onepage_Billing, where I believe it should extend Mage_Checkout_Block_Onepage_Shipping. This was causing the shipping step to not be displayed in our onepage checkout. This was on a customized Enterprise Edition, which I don't think this module proposes to support, but it seems like this issue would apply to all versions. Updating the class to extend Mage_Checkout_Block_Onepage_Shipping fixed the issue for us.
Daniel hi,
It's not an issue but more a question
By default cart cookie is created when product is in the cart (or added to cart)
Is there a way to make cart cookie be also created when coupon is applied.
We apply coupon to our guest users carts' programmatically when they come from specific link using this code:
Mage::getSingleton("checkout/session")->setData("coupon_code",$coupon_code);
Mage::getSingleton('checkout/cart')->getQuote()->setCouponCode($coupon_code)->save();
Mage::getSingleton('core/session')->setMiscellaneous_Scripts('script');
So sometimes coupon code is applied, but guest did not add product to cart yet. (And if he leave before adding to cart, coupon is lost). So i would like to create cart cookie for this situation too.
Hi,
Can you please advise if this extension is on Magento Connect? Thanks
Hello!
I always used this extension and it worked like a charm (thank you by the way).
But since yesterday I'm getting a lot of exceptions:
Next Zend_Db_Statement_Exception: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (database.report_viewed_product_index, CONSTRAINT FK_REPORT_VIEWED_PRD_IDX_PRD_ID_CAT_PRD_ENTT_ENTT_ID FOREIGN KEY (product_id) REFERENCES catalog_product_entity (entity_id) ON DELE), query was: INSERT INTO report_viewed_product_index (visitor_id,customer_id,product_id,store_id,added_at) VALUES (\?, \?, \?, \?, '2020-10-18 12:50:08') ON DUPLICATE KEY UPDATE visitor_id = VALUES(visitor_id), customer_id = VALUES(customer_id), product_id = VALUES(product_id), store_id = VALUES(store_id), added_at = VALUES(added_at) in /home/website/public_html/lib/Zend/Db/Statement/Pdo.php:235
I have disabled the viewed part in the setting, but the readViewedCookie()
function is triggered "regardless of admin setting" (as stated in the method)
I tried to clean the report_viewed_product_index database, but the exceptions keep appearing.
What can I do to fix this?
Thank you!
Daniel, hi
At what moment Viewed Products Cookie is created?
and are there any required settings other than this?
I've supposed it should be created when vising product page. But it's not created.
On the other side cart cookies is working as expected and is created when products are added to cart.
Trying to understand what can be the reason. We are using bundle products (not simple ones) - can it be the reason?
UPDATE: Seems like viewed products looking at report_viewed_product_index table, and i think we have it disabled.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.