X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   X-Cart reBOOT (reDUX) Template (https://forum.x-cart.com/showthread.php?t=77655)

thebluedoorboutique 07-27-2021 12:04 PM

Re: X-Cart reBOOT (reDUX) Template
 
Quote:

Originally Posted by PhilJ
@Doug, ok the WEBP image generator has been improved.

- You can now generate and delete WEBP images on an image-type basis.
- The 'Update WEBP Images' button should now do its job properly... it'll generate only the necessary images that haven't already been converted to WEBP.

You shouldn't need to manually upload any WEBP images ... the generator should do all the work for you.

Get the latest zip via your order invoice and replace /images/webp/index.php

Hope that helps, let me know how you get on.

I've added some general info about the WEBP generator here.


What kind of storage requirement is needed to keep both? Couldn't you convert the images during upload, and then delete the original, leaving only the webp ?

PhilJ 07-28-2021 12:29 AM

Re: X-Cart reBOOT (reDUX) Template
 
Quote:

What kind of storage requirement is needed to keep both?
Not a huge amount, the WEBP images are usually around 60% of the size of the original JPEGs.

Quote:

Couldn't you convert the images during upload, and then delete the original, leaving only the webp ?
That was the plan originally, but this way you don't have to do any extra image uploading, and you can be using WEBP images across your store in minutes, even with thousands of products. You can also enable/disable WEBP images anytime you want.

To integrate WEBP images into the X-Cart core, you need to modify /include/func.image.php, but I couldn't figure it out, so decided to build a separate WEBP image generator instead.

PhilJ 07-31-2021 12:44 AM

Re: X-Cart reBOOT (reDUX) Template
 
@ Doug, WEBP generator updated, you can now update images on an image-type basis.

Also added note/tools re. images with incorrect file extensions...
https://xcartmods.com/reboot/webp

PhilJ 07-31-2021 10:50 AM

Re: X-Cart reBOOT (reDUX) Template
 
The ECCF addon is now bundled in FREE, so if you need any custom forms, give it a go :)

The price of the template has also been reduced to $99 for a limited time only !

PhilJ 08-12-2021 12:18 PM

Re: X-Cart reBOOT (reDUX) Template
 
Possible new custom header category accordion menu for desktops - DEMO - (updated 19/08/21)
It's not dynamic, it works off simple JSON files (it can be made dynamic, but might be useful if you want a custom menu, with only specific categories)
Would this be of interest to any of you lot?
I'll probably just add it to the codebase anyway :)

PhilJ 08-13-2021 11:48 AM

Re: X-Cart reBOOT (reDUX) Template
 
QUICK TIP: If you want to publicly display how many customers bought the product, and the total amount of products sold...

DEMO

1) In /reboot/get_product_info.php

Before...
Code:

?>
Insert...
Code:

# Get amount of people who bought this product
$users_bought_qry = db_query("SELECT COUNT(DISTINCT(userid)) AS total FROM $sql_tbl[order_details_stats] WHERE productid='$productid';");
$users_bought_result = db_fetch_array($users_bought_qry);
$smarty->assign("buyers", $users_bought_result);

# Get amount of products sold
$product_sales_qry = db_query("SELECT SUM(sum_amount) AS total FROM $sql_tbl[order_details_stats] WHERE productid='$productid' GROUP BY productid");
$product_sales_result = db_fetch_array($product_sales_qry);
$smarty->assign("sales", $product_sales_result);

2) In /skin/reboot/customer/main/product_header.tpl


Before...
Code:

{if $config.Reboot.reboot_product_added_modified_details eq "Y"}
Insert...

Code:

{if $buyers.total && $buyers.total gte "2"}
<div class="col-12 col-md-auto mr-md-4 mt-3 mt-md-2">Buyers: <span class="badge badge-pill badge-dark float-right float-md-none">{$buyers.total}</span></div>
{/if}

{if $sales.total && $sales.total gte "2"}
<div class="col-12 col-md-auto mr-md-4 mt-3 mt-md-2">Sales: <span class="badge badge-pill badge-dark float-right float-md-none">{$sales.total}</span></div>
{/if}



Or, do something like...
Code:

{if ($buyers.total && $buyers.total gte "2") && ($sales.total && $sales.total gte "2")}
{capture name=alert}
<b>{$buyers.total}</b> people bought <b>{$sales.total}</b> of these!
{/capture}
{include file="customer/alert.tpl" content=$smarty.capture.alert close=true type="success" icon="check"}
{/if}


Maybe useful if you have healthy sales :)

PhilJ 08-20-2021 02:07 PM

Re: X-Cart reBOOT (reDUX) Template
 
I'm in the process of adding a 'proper' blog with backend management to reDUX ... DEMO

I'll be trying to implement blog 'clean urls' for categories and posts in PHP / .htaccess, but if anyone knows any tips for doing it, please drop us a PM.

Dougrun 08-30-2021 08:20 AM

Re: X-Cart reBOOT (reDUX) Template
 
Quote:

Originally Posted by PhilJ
Possible new custom header category accordion menu for desktops - DEMO - (updated 19/08/21)
It's not dynamic, it works off simple JSON files (it can be made dynamic, but might be useful if you want a custom menu, with only specific categories)
Would this be of interest to any of you lot?
I'll probably just add it to the codebase anyway :)





its also live on our site..

https://www.vsathletics.com/store/home.php

PhilJ 09-07-2021 11:37 PM

Re: X-Cart reBOOT (reDUX) Template
 
8th Sept 2021 - Some changes made, including new maximum quantity and case quantity product fields - Changelog - Sorry for the delay! Any problems, drop me a line.

The new blog I intended to make is on hold for the moment, as the current 'built-in' blog actually works just fine :)

I'll be adding more homepage styles next (5-12), probably over the weekend.

peggyr 09-08-2021 10:35 AM

Re: X-Cart reBOOT (reDUX) Template
 
Phil,

MAX QTY works like a champ!

THANKS

Peggy


All times are GMT -8. The time now is 12:40 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.