I have the admin > view > tamplate > sale > order_list.tpl which I assume is handled by admin > controller > sale > order.php . More specific, getList() method. However when i edit this method, nothing changes in the frontend and I can't figure out why. I assume it's the wrong controller... Any ideas? I'm new to opencart.
The selected controller seems to be the right one.Just put some exit;or die(); and check.
Related
the defult url of a product is =
http://localhost/OpenCartDesign/upload/index.php?route=product/product&product_id=64
I want to change this in http://localhost/OpenCartDesign/upload/index.php?route=product/product&product_name= here show product name not product id
Rename /OpenCartDesign/upload/.htaccess.txt to /OpenCartDesign/upload/.htaccess. Inside Dashboard go to System > Settings > Action: Edit (Store) > Server (tab) > Use SEO URLs: YES and click the SAVE button.
Then you will have this http://localhost/OpenCartDesign/upload/product-name which is much better for SEO.
I'm using TYPO3 and News System and Bootstrap Package.
I see the opengraph tags twice. One of the news and one of page. How i can resolve it?
You need to exclude the opengraph of the bootstrap package when being on a news detail page. Then you only get it once.
Put this into your TypoScript
[globalVar = GP:tx_news_pi1|news > 0]
page.meta.og:title >
page.meta.og:site_name >
page.meta.og:description >
page.meta.og:image >
[global]
Thank you Georg for the hint. For TYPO3 version 9 you should use new typoscript condition syntax:
// Prevent bootstrap_package og:attributes for single view
[(request.getQueryParams()['tx_news_pi1'])['news'] > 0]
page.meta.og:title >
page.meta.og:site_name >
page.meta.og:description >
page.meta.og:image >
[end]
I want to add three more filed to cart page .()
<input name="pr_name">
<input name="pr_phone >
<input name="pr_add">
can any one help me to add these files to cart .
you will need to modify the following:
the model for the cart /catalog/model/checkout
the controller for the cart /catalog/controller/checkout
the view for the cart whatever theme you are using
finally you will need to do the same for the admin panel and depending on where you would like to see them for example you might want to view them in the invoice you will need to change the model / controller that correspond to that. unfortunately its not like a plug and play thing.
How do I change my page title (file attached) as an administrator? From the back office.
Click here to view my example of "Page title"
To change your shop’s name in PrestaShop, first open your site’s Admin Control Panel,
Go to Preferences -> Store Contacts(Contacts)
Replace ‘Shop Name’ text box with your desired shop name.
Scroll down and click Save.
Thanks.
Are you trying to change the site name?
You can do this from:
Backoffice > Preferences > Store Contacts > Contact details > Shop
name
If you need to update CMS page:
Backoffice > Preferences > CMS > Click Edit on page you want to change
-> Meta title
Where did I miss to add a line of code if I try to echo php variable inside OPENCART product.tpl file and it doesn't show up on site?
Notes: there is a field in database. I am able to save to this field from admin panel ( i added a custom field there).
Did You edit also the product controller to load the variable and pass it to the template? I guess not... Edit catalog/controller/product/product.php and add $this->data['MYVARIABLE'] = $product_info['MYVARIABLE']; somewhere before $this->render() is called.