cqpbert Posted July 26 Share Posted July 26 I would like to have a product that will load some custom code from my server. I do not want to do this for every product page. Is there some easy way to do this? Maybe I am going about this wrong, But I want to run some script on a page, doesn't really seem like It should be in the description. I would also like to manipulate the image area as well. So it seems like I either need to understand how to "talk" to the image area of the standard product layout page, or not use the standard page for this product? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 28 Share Posted July 28 The easiest is to edit the content.product.php file to add key variables. If the variable is empty, there is nothing to do. If the variable were to contain something, the name of a file or a certain value for example, then the template code would use it appropriately. That means there needs to be a way to add additional fields to the product's details. This way, only those products you want to have these special effects will be affected. Send a PM for more info. Quote Link to comment Share on other sites More sharing options...
cqpbert Posted July 29 Author Share Posted July 29 PM sent Quote Link to comment Share on other sites More sharing options...
Festivalkyrie Posted September 12 Share Posted September 12 On 7/29/2024 at 2:23 AM, bsmither said: The easiest is to edit the content.product.php file to add key variables. If the variable is empty, there is nothing to do. If the variable were to contain something, the name of a file or a certain value for example, then the template code would use it appropriately. That means there needs to be a way to add additional fields to the product's details. This way, only those products you want to have these special effects will be affected. Send a PM for more info. CredibleBH To customize your product's display, you'll need to edit the content.product.php file by adding key variables. If a variable is empty, it won't impact the product. However, if the variable contains data—like a file name or specific value—the template code will use it accordingly. To apply these changes selectively, you should add extra fields to the product details. This allows only certain products to have these special features. For further assistance, feel free to send a private message. Quote Link to comment Share on other sites More sharing options...
cqpbert Posted October 5 Author Share Posted October 5 Thanks Bsmither for the help to get this all sorted!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.