Hello CS gurus.
Does anyone know how I can show the vendor of each product on the checkout page, where the products are listed?
Thanks
Hello CS gurus.
Does anyone know how I can show the vendor of each product on the checkout page, where the products are listed?
Thanks
Do you mean block with products at right side?
Yes :)
Use hooks in the following file to show necessary data
design/themes/responsive/templates/blocks/checkout/products_in_cart.tpl
Thanks eCom. Could you please be a bit more specific, as my programming skills are rather limited? Many thanks in advance
It depends on your needs. Use something like
{if $product.company_id} {$_company_data = $product.company_id|fn_get_company_data} {$_company_data|fn_print_r} {/if}
It will print out available company data
Nop... doesn't seem to work. I have tried to include the above code in several places but no result. This is how my current products_in_cart.tpl looks like. Where should the code go?
Thanks
For example, add the code before the following line
{hook name="block_checkout:product_extra"}{/hook}
Do not forget to clear cache then
Kind of worked... but this displays ALL the available vendor data, description etc etc... I was looking for just the vendor name (so that the buyer knows which vendor each product is from).
Thanks again
My code just shows all available data. You can display only required one. For exameple
{if $product.company_id} {$_company_data = $product.company_id|fn_get_company_data} {$_company_data.phone} {/if}
But to display only vendor name, use the following code
{if $product.company_id} {$product.company_id|fn_get_company_name} {/if}