| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Option Type Custom Text Field | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hello,
I have added the following option to a product, Option group name: OrderNumber Option text: Order Number Option group type: Custom text field OrderBy: 1 Availability: Enabled Options list: This type of product options has no variants But when I am on the product details page the option does not show up so am unable to enter the order number in the text field. When proceeding to the the cart page it shows, Selected options: OrderNumber: and the only way to add the order number at that point is to click on the Edit options link, insert the order number and click Update. Why is the option not showing up on the product details page with the text box to be able to insert the order number there? Thanks |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() The only thing comes to mind is you have modified product.tpl file and options are hidden there
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Quote:
Thanks Steve, Yeah I was thinking the same thing as I have had product.tpl extensively modified. Just had a quick look at it and seen that the following line was commented out. Code:
Not sure why that would have been commented out but will have to investigate when I have more time. |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Steve,
I found out the reason that line was commented out, it is because of the way we have variants in a table. Would you know what the if statement would be to show it only on that product? The product page is product.php?productid=45&cat=15 so I would need something along the lines of. {if product="productid=45&cat=15"} {include file="modules/Product_Options/customer_options.tpl"} {/if} Thanks |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() {if $product.productid eq 45}
show it {else} show something else} {/if} There's no need to cat as productid is unique
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#6
|
|||||||||
|
|||||||||
![]() That worked like a champ Steve, thank you.
|
|||||||||
#7
|
|||||||
|
|||||||
![]() Does anyone know the code for forcing an entry in a custom text field?
I have the code for forcing a selection from drop downs like Code:
But how do I do it for a custom text field?
__________________
X-Cart DB Version: 5 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Try
Code:
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|