Jump to content
Christopher Short

Sale setting issues

Recommended Posts

Capture.PNG.dd13373b2aeac643db9ea29fdbf3e4a5.PNG

Ideas on fixing this? I can turn off the sale mode and it goes away. Currently set as a per product sale. Just upgraded to the new version

If you add a price to the sale price in the product cost tab, it updates to that price. $0 is default as I don't do sale prices on most items. When I updated one to reflect retail, it shows retail crossed out and the "sale" price in red of retail amount. 

 

Share this post


Link to post
Share on other sites

In the template box.sale_items.php, make this edit:

Lines 19-23, from:
    {if empty($product.sale_price)}
    {$product.price}
    {else}
    <span class="old_price">{$product.price}</span> <span class="sale_price">{$product.sale_price}</span>
    {/if}

To:

    {if $product.ctrl_sale}
    <span class="old_price">{$product.price}</span> <span class="sale_price">{$product.sale_price}</span>
    {else}
    {$product.price}
    {/if}

 

Share this post


Link to post
Share on other sites

 

On 9/5/2019 at 12:38 AM, bsmither said:

In the template box.sale_items.php, make this edit:

Lines 19-23, from:
    {if empty($product.sale_price)}
    {$product.price}
    {else}
    <span class="old_price">{$product.price}</span> <span class="sale_price">{$product.sale_price}</span>
    {/if}

To:

    {if $product.ctrl_sale}
    <span class="old_price">{$product.price}</span> <span class="sale_price">{$product.sale_price}</span>
    {else}
    {$product.price}
    {/if}

 

So this fixed the pricing, and thank you for that. How do I fix this issue?

 

Capture.PNG.8b53e91b3edf2d894f197e500d1a6f27.PNG

 

 

Edited by Christopher Short

Share this post


Link to post
Share on other sites

"This issue?"

From the image, it appears that the table - which cannot get any narrower - has overflowed the area allotted to the category description.

You could pivot the table: Make SkyAngle Size a column and the Specs a header row. Then for each header, use an abbreviation with a blue Info icon (when hovered will show the full specification phrase).

 

Share this post


Link to post
Share on other sites
20 minutes ago, bsmither said:

"This issue?"

From the image, it appears that the table - which cannot get any narrower - has overflowed the area allotted to the category description.

You could pivot the table: Make SkyAngle Size a column and the Specs a header row. Then for each header, use an abbreviation with a blue Info icon (when hovered will show the full specification phrase).

 

What about removing the sales box? People can see the sale price because it shows on the category page. 

Share this post


Link to post
Share on other sites

The box can be removed from the template, but it will be removed from all pages. It is possible to remove the box when just viewing a View Category page. It is possible to remove the entire right side panel when just viewing a View Category page - or all pages except for the Homepage.

But this doesn't really resolve the actual problem of the table being too wide.

For example, slide the right edge of your browser window to narrow the viewport's width. At some point, the entire right side panel will disappear (as it should) - but the table will still be as wide as it always was. So, even a narrower table could still pose a problem for those who (for whatever reason) want to view your site on a mobile phone.

Edited by bsmither

Share this post


Link to post
Share on other sites
4 minutes ago, bsmither said:

The box can be removed from the template, but it will be removed from all pages. It is possible to remove the box when just viewing a View Category page. It is possible to remove the entire right side panel when just viewing a View Category page - or all pages except for the Homepage.

But this doesn't really resolve the actual problem of the table being too wide.

For example, slide the right edge of your browser window to narrow the viewport's width. At some point, the entire right side panel will disappear (as it should) - but the table will still be as wide as it always was. So, even a narrower table could still pose a problem for those who (for whatever reason) want to view your site on a mobile phone.

 

so how do I reformat this table to move as screen size changes? It is built in the product description box. 

Share this post


Link to post
Share on other sites

"It's an image."

I'm going to say that really doesn't change the need to deal with the (image of) the table.

But being an image, we make the browser scale it down -- perhaps to the point of illegibility.

Share this post


Link to post
Share on other sites
1 minute ago, bsmither said:

"It's an image."

I'm going to say that really doesn't change the need to deal with the (image of) the table.

But being an image, we make the browser scale it down -- perhaps to the point of illegibility.

I went and checked, corrected myself. I thought it was an image, but it is indeed a HTML table.

Share this post


Link to post
Share on other sites

On the View Product page, is this table as wide as it is as being shown in the screen capture above?

I see that the table was probably created using the editor in admin. The <table> tag has hard coded width and height parameters.

Bring the category up for editing. Switch the editor to Source mode. Manually remove the height and width parameters in the <table> tag. Save directly from the Source mode. (Clear Cache if necessary.)

 

Share this post


Link to post
Share on other sites
10 hours ago, bsmither said:

On the View Product page, is this table as wide as it is as being shown in the screen capture above?

I see that the table was probably created using the editor in admin. The <table> tag has hard coded width and height parameters.

Bring the category up for editing. Switch the editor to Source mode. Manually remove the height and width parameters in the <table> tag. Save directly from the Source mode. (Clear Cache if necessary.)

 

That fixed most of it. On mobile, the table is still pushed out of the screen. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...