Posts

Showing posts from March 4, 2019

Show Messages from Message Manger after Redirect

Image
0 I am currently using the message manager to display a series of messages from my controller. $this->_messageManager->addSuccessMessage(__("All requested products have been added to the cart.")); When the controller sends back the HTTP response i am forcing a redirect to the cart page. window.location.href = "/checkout/cart"; The issue with this is that the messages appear on the current page the HTTP request was sent from and then the redirect occurs, so the messages are on screen for half a second then the page changes. What i want ideally is for the messages to be displayed on the cart page. I have a feeling this is occuring because i am setting the messages in php and then forcing the redirect in the Javascript, after the response has been received. Looking at some Magen

Evaniidae

Image
Evaniidae Siyentipiko nga pagklasipika Ginhadi-an: Animalia Phylum: Arthropoda Ubosphylum: Hexapoda Klase: Insecta Orden: Hymenoptera Labawbanay: Evanioidea Banay: Evaniidae Binomial nga ngaran Evaniidae An Evaniidae [1] in uska familia han Hymenoptera. An Evaniidae in nahilalakip ha familia nga Evanioidea, ordo nga Hymenoptera, classis nga Insecta, punoan nga Arthropoda, ngan regnum nga Animalia. [1] An familia nga Evaniidae in naglalakip hin 456 ka mga species, sumala ha Catalogue of Life [1] . Sulod 1 Ilarom nga taxa [1] 2 Mga kasarigan 3 Mga sumpay ha gawas 4 Image gallery Ilarom nga taxa [1] | Acanthinevania Afrevania Brachevania Brachygaster Cretevania Decevania Eoevania Eovernevania Evania Evaniella Evaniscus Grimaldivania Hyptia Lebanevania Mesevania Micrevania Newjersevania Papatuka Parevania Praevania Procretevania Prosevania Protoparevania Rotheva

Magento 2 - Help on how to run a script on db via cron

Image
0 I was looking for a solution that would disable products with no images so the catalogue is not randomised by ones that have our image place over. Looks messy. I found this on stackoverflow, which is a script to run in the database but at the moment it'll mean i'll have to manually run this every day when my product feeds are imported (via cron) into the shop update catalog_product_entity_int m left join eav_attribute a on a.entity_type_id = 4 and a.attribute_id = m.attribute_id set value = 2 where a.attribute_code = 'status' and m.entity_id in ( select m.entity_id from catalog_product_entity m left join catalog_product_entity_media_gallery_value_to_entity a on a.entity_id = m.entity_id where a.value_id is null ) ; How would i go about getting this run on th