GithubHelp home page GithubHelp logo

magento-guest-cookies's People

Contributors

clockworkgeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

magento-guest-cookies's Issues

Shipping method step not being displayed due to bad class inheritance

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.

Coupon code

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.

Exception on Viewed->addProductIds - Trying to add product_id as NULL

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!

Viewed Products Cookie

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.