wapone / module-stickers Goto Github PK
View Code? Open in Web Editor NEWMagento 2 extension to provide product image stickers visible everywhere in the store (category page, product page, result page, related/upsell/crossell, widget)
Magento 2 extension to provide product image stickers visible everywhere in the store (category page, product page, result page, related/upsell/crossell, widget)
This extension only allows one sticker at a time? We would like add stickers for "10% off", "20% off", "30% off", etc.
Is it possible to change it to allow multiples?
The media base URL will be /media on typical production setups. This will give broken links to images for this plugin
Wrong way to fetch the base URL for media:
$this->getUrl('pub/media')
Correct way:
$this->_storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA)
see Block/Discount.php
view/frontend/templates/categoryDiscount.phtml also needs a change
One way of solving this is by adding a new function to Discount.php that returns the full path to the sticker image:
public function getStickerImageFP()
{
return $this->_storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA)."wapone/stickers/images/".$this->getStickerImage();
}
then calling this one instead of getStickerImage()
Magento version : 2.1.7
Steps to reproduce :
Expected result : Discount sticker must be shown anywhere inside the product list block
Actual result : Discount sticker is not showing up
It is working well with category page and product listing widget... Could you please have a look at this issue?
Hi,
Thank You for great module but Configurable products are not show when automatic Discount calculation is enabled. Basic products works well but like T-Shirts and shoes are missing on category page. Product page is ok.
Any idea?
t:-j
I am getting this error: Warning: Division by zero in vendor/wapone/module-stickers/Model/Stickers.php on line 85
After adding configurable product with 3 different prices.
When in a overview of products, all percentages are the same and that is not correct.
Add compatibility for magento 2.3.x and Add Free Shipping sticker with logica, if the price is higher than xx you should show the Free Shipping sticker.
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.