How to show discount on homepage in Opencart 3.0.3.6 with Journal 3 theme installed? - opencart

I have Opencart 3.0.3.6 store with Journal 3 theme installed. Many products have discounted price if customer buy in certain quantity. This discount is visible on the product page when customer click on the product on the home page and load the product page. I want to show quantity discount on the home page like the image.
Opencart Demo site product
Opencart Home Page Product Grid
This is what I am trying to achieve to show discount on home page
I figured out that catalog/view/theme/journal3/template/journal3/product_card.twig file shows content on the homepage or as product grid but I am not sure which controller file it gets it's data from. Can some one please help me to locate the controller file and help with the code?

Related

Add to cart button on luna theme big cartel

How do I stop the "add to cart button" on my products page from redirecting people to the shopping cart page. I would much prefer it to just add the item selected and then allow them to continue shopping instead of forcing them to be redirected. Also, is there a way to add a cart preview drop down to the products page. I would like a preview to drop down and show the cart page each time they add something.
Thank you

Check/Uncheck with Close Tags Button for Filter Product JavaScript Journal 3 Opencart

I want to add the feature filter with close tags button for filter in journal theme Opencart3 like image below. Do you have any solutions for it?

Adding a multiple Image gallery to a page with text?

I'm learning Wagtail and I'm trying to make a basic Ecommerce style site. The layout will be:
Home Page
-> Products
-> Product 1
-> ...
-> Product N
-> About
-> Contact
In the Product page I want to have a Title, Description, Picture gallery or just display a few pictures and eventually tags (But this post is about the Images). I have checked this Documentation which explain how to add Abstract Images in the View but it leaves me confused on what to import and add to the model, what type? when I just want to add 1,2...n Images on a Product page. The documentation only explains how to add an Image into a form and it leaves me wondering should I use a Django type or Wagtail type?
How would I add the ability to upload/remove images from the admin console Product page?

how to products list of the cart at Product details page

I want to get the product list of cart in the Product details page. how to get it???
I think cart details are stored in a session.
How to use it on Product details page
i'm using Virtuemart 2.022a and Joomla 2.5.9
Try this,
$cart = VirtueMartCart::getCart();
if(sizeof($cart->products){
echo "<pre/>";
print_r($cart->products);
}
Hope its help you..

Create post-forms such as craigslist on my Django powered website

I'm creating a marketplace website such as Craigslist. I'd like to make "post-forms" for users to post their own product information (by uploading photos, adding forms (name, price,condition,,etc.)) on my website' category-page.
Now, I think I can do these things by making use of "Django Permission", but is it correct? If so, how can I do that? Or if not, there are other ways to allow users to do these things ?
The short summary of my website is like below. Specifically,I'd like to know how to allow people to post their products on the category page.
Register & Login
You would have several categories such as furniture, books, games,,, and then, click one of those categories. (I've created this category-page by using "Django admin")
(eg. )
http://bakersfield.craigslist.org/
Then, you can see what kinds of goods are sold on that category page. And then, At the top of website, you can find "Post" button to post our products on the top of my website.
And after click it , you can find "Posting title" "Price" and "upload photos" and many other forms.
(eg)
https://post.craigslist.org/k/7v...
4.After filled those forms,then click "submit" button to post your products pages' link to category page.
Craigslist is the best example for my website.