how to remove advertisement opencart in admin panel - opencart

How to remove OpenCart © 2009-2019 All Rights Reserved. Version 3.0.3.2. in admin panel dashboard? Opencart advertisement all admin dashboard. log in before & log in after all advertisement opencart.
Force Login to View Products/Store. As soon as the customer came to our website, and after some time duration, force login the register. Like in the pintreast website without extension.
I am using opencart 3.0.3.2

Very simple solutions:
Go to admin\language\en-gb\common\footer.php
Find
$_['text_footer'] = 'OpenCart © 2009-' . date('Y') . ' All Rights Reserved.';
$_['text_version'] = 'Version %s';
Replace with
$_['text_footer'] = '';
$_['text_version'] = '';

Related

How to show discount on homepage in Opencart 3.0.3.6 with Journal 3 theme installed?

I have Opencart 3.0.3.6 store with Journal 3 theme installed. Many products have discounted price if customer buy in certain quantity. This discount is visible on the product page when customer click on the product on the home page and load the product page. I want to show quantity discount on the home page like the image.
Opencart Demo site product
Opencart Home Page Product Grid
This is what I am trying to achieve to show discount on home page
I figured out that catalog/view/theme/journal3/template/journal3/product_card.twig file shows content on the homepage or as product grid but I am not sure which controller file it gets it's data from. Can some one please help me to locate the controller file and help with the code?

How to redirect the homepage url to particular required url In sharepoint 2013..?

how to do this in sharepoint 2013
if i enter this url https://example.com/abc/sites/home.aspx it should redirect to https://example.com/abc/sites/home/Menu.aspx
You could edit the home page and insert some js code to redirect to the target page.
Check redirect to another page programmatically
BR

How to show in address bar www.domain.com instead of www.domain.com/something

I have website made on opencart CMS, it is one page website, so I made redirect in home.tpl on page www.domain.com/promo (it is product page)
<?php
header("Location: /promo");
exit();
?>
Now when someone opens www.domain.com he see www.domain.com/promo.
How to make him see only www.domain.com?
Go to the index.php file and look for the router coding, it should look similar to the code below:
$action = new Action('common/home');
You will then have to change 'common/home' to the location of the page you created within Opencart.
For example: to navigate to the login page we will have to change it to 'account/login'

How can I add a "trending topics" section to my site's homepage?

I would like to add a custom "trending topics" section to my news website at the top of the homepage. An existing example that shows precisely what I am looking for is the Daily Beast homepage.
I would like to do this with custom code or with a plugin, but not as a widget. Does anyone know how I can do this in a flexible way that can easily customize to style and look of my website.
My site is a Spanish language 24/7 news website called Yasta.pr. Thx!
it depends on how you are storing your data in your database but you can try this:
add a div section in the header of your webpage above the menu bar.
then you can dynamically add the most trending topic to it automatically when the page starts by inserting this code inside it:
<div id="*id_name">
$query = "SELECT * FROM *table_name ORDER BY *most_trending_column LIMIT 1";
mysql_select_db(*database_name, *connection);
$result = mysql_query($query) or die(mysql_error());
$data = mysql_fetch_assoc($result);
echo "<h3 id='*id_name'>" . $data['*title_column_name'] . "</h3>";
</div>
dont forget to connect to your database first.

Alternatives to getting url of iframe

I'm building a website where the users to essentially "mark" things from another site -- e.g. they browse a third party's catalog, and once they hit an item they like, they somehow indicate to my site about that specific item (e.g. via the url). My initial thought was to have an iframe, a "mark" button on my own site in a little bar at the top, and the third party site in the iframe -- however, I found that it's impossible to get the url of an iframe if the user navigates away from the inital url. Is there any alternative to doing this?
You can retrieve html from another site, modify it and show to your user. Sure, you should have a grant from site owner and update your modifier for any html layout update. And you will need to resolve somehow all links from the page, including css, js and so on.
Iframe is not an option, you can't control the page in a frame in any way. That's security policy for all browsers.
(I know I'm a bit late but may be someone find it useful)
I had the same problem. I came to conclusion that only way to do that is creating proxy in PHP. And that's what I did (contents of "proxy.php" file):
<?php
$proxy = 'http://yoursite.com/proxy.php';
$host = parse_url($_GET['url'], PHP_URL_HOST);
$dir = $_SERVER[DOCUMENT_ROOT].'/cache_proxy/'.$host;
if(!is_dir($dir))
mkdir($dir);
$filepath = $dir.'/'.md5($_GET['url']);
if(is_file($filepath)){
include($filepath);
}else{
$page = file_get_contents($_GET['url']);
$page = preg_replace('/(a href)=[\'\"](http.*)[\'\"]/', '$1="'.$proxy.'?url=$2"', $page);
$page = preg_replace('/(a href)=[\'"][^http](.*)[\'"]/', '$1="'.$proxy.'?url=http://'.$host.'/$2"', $page);
$page = preg_replace('/(href|src)=[\'"][^http+](.*)[\'"]/', '$1="http://'.$host.'/$2"', $page);
file_put_contents($filepath, $page);
echo $page;
}?>
Now you can insert iframe with src="http://yoursite.com/proxy.html?url=http://othersite.com"