Jump to content

Custom product page


cqpbert

Recommended Posts

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?

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

  • 1 month later...
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.

Link to comment
Share on other sites

  • 4 weeks later...

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...