Generate Product HTML on Modify [3.5.x]
Here's a mod I did on cart-lab.com, I was sick of re-updating the product html every time I made a change to my products. It works in a sense that it will update the product's html counter part, however all subsequent pages, like index.html and related product(s), etc. Wont be generated, so you end up having to regenerate the html catalog again. If anyone wants to take it a step further into 4.0.x perhaps and add the missing features to make it complete feel free.
admin/html_catalog.php after: Code:
func_html_location("html_catalog.php",30); Code:
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Next edit include/product_modify.php and find the code segment: Code:
} else { Paste the following above it Code:
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
This is Excellent Mod. This way I won't have to generate whole 1500 product catalgo just for one single product modification!
Will this work in 3.4.0 thanks |
It *MAY* work in 3.4.x all you should need to change is the "..".DIR_ADMIN."/html_catalog.php to "../admin/html_catalog.php
|
I get this error after saving a product:
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home2/softsell/pointofsaledepot-www/store/include/func.php on line 2801 Warning: fsockopen(): unable to connect to www.pointofsaledepot.com::80 in /home2/softsell/pointofsaledepot-www/store/include/func.php on line 2801 It then creates a 0 byte html file. Any ideas? Thanks Randy |
Generating the HTML cat regularly generate any errors?
|
nope .. just after I edit a product.
|
I tried in and after modifying when I clicked submit button, on next page header it gave following error. And html catalog part for that product page stayed blank.
Quote:
|
Did anyone get this working in 4.x? Seems like a great time saving mod.
---- ISI X-Cart 4.0.13 |
All times are GMT -8. The time now is 07:53 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.