Hi All,
Can someone help me to find a solution.
When the user is not registered and login.
Must see only products, no to show the price in product and category and cart button to hide.
When the user is login.
Can see everything normally, product prices and cart button.
Only registered and lodged users to see price and can make an order!
Do you know someone extension to make this? I try to find it but nothing.
Open Cart version is 2.3.0.2
Can someone help me to find a solution.
When the user is not registered and login.
Must see only products, no to show the price in product and category and cart button to hide.
When the user is login.
Can see everything normally, product prices and cart button.
Only registered and lodged users to see price and can make an order!
Do you know someone extension to make this? I try to find it but nothing.
Open Cart version is 2.3.0.2
Correct: Menu Settings > Tab Options >> Section Account : Show prices only to logged in (or like this in english)
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Yes, I found it. Thank you
I found a solution for the cart button, works great for me but can't make it in ocmod.
I Add this code manually in the header.tpl file.
And Works fine.
I Add this code with ocmod file, but not working, any ideas about how to debug code?
I Want to make with ocmod file, not with hardcode.
I found a solution for the cart button, works great for me but can't make it in ocmod.
I Add this code manually in the header.tpl file.
Code: Select all
<?php if($logged) { ?>
...my shopping cart code
<?php } ?>
I Add this code with ocmod file, but not working, any ideas about how to debug code?
Code: Select all
<modification>
<file path="catalog/view/theme/{so-mobile,so-revo}/template/header/header1.tpl">
<operation error="skip">
<search><![CDATA[<div class="block-cart">
<div class="shopping_cart">
<?php echo $cart; ?>
</div>
</div>]]></search>
<add position="before"><![CDATA[<?php if($logged) { ?>]]></add>
</operation>
</file>
<file path="catalog/view/theme/{so-mobile,so-revo}/template/header/header1.tpl">
<operation error="skip">
<search><![CDATA[<div class="block-cart">
<div class="shopping_cart">
<?php echo $cart; ?>
</div>
</div>]]></search>
<add position="after"><![CDATA[<?php } ?>]]>
</add>
</operation>
</file>
</modification>
This code wil never work.
1.
not
instead
or if you want to change a specific file only, name only that
2. wrong
you can search only for one line (or use regex):
3. why so complicated?
Use the enclosed mod, try it and report back.
1.
not
Code: Select all
<file path="catalog/view/theme/{so-mobile,so-revo}/template/header/header1.tpl">
Code: Select all
<file path="catalog/view/theme/*/template/header/header1.tpl">
2. wrong
Code: Select all
<search><![CDATA[<div class="block-cart">
<div class="shopping_cart">
<?php echo $cart; ?>
</div>
</div>]]></search>
Code: Select all
<?php echo $cart; ?>
Use the enclosed mod, try it and report back.
Attachments
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Who is online
Users browsing this forum: No registered users and 3 guests