Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare doeas not cross original price when special price available #2555

Closed
Schwannn opened this issue Jan 12, 2015 · 2 comments
Closed

Compare doeas not cross original price when special price available #2555

Schwannn opened this issue Jan 12, 2015 · 2 comments

Comments

@Schwannn
Copy link

Opencart 2.0.1.1, when adding products with special price to compare, it will show original price and special price both next to each other, it should either show both and cross the original price or just show special price.

@Schwannn
Copy link
Author

I fixed it by adding a style to the span as follow:

Line 52 in compare.tpl
Change:
<span class="price-old"><?php echo $products[$product['product_id']]['price']; ?> </span><span class="price-new"> <?php echo $products[$product['product_id']]['special']; ?> </span>

to:
<span class="price-old", style="text-decoration: line-through;"><?php echo $products[$product['product_id']]['price']; ?> </span><span class="price-new"> <?php echo $products[$product['product_id']]['special']; ?> </span>

@mrg123
Copy link

mrg123 commented Jun 5, 2015

<span class="price-old", style="text-decoration: line-through;">
you more , in here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants