5

You need to edit your htaccess file for this kind of redirect. See below: ## enable rewrites Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^example.com$ [NC] RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %...


3

Try with below code other option: $url = 'http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<%2FRESPONSEDESCRIPTION><%2FRESULT>'; $url_data = parse_url($url); parse_str($url_data['query'], $...


3

app/design/frontend/[Magento theme Folder]/template/catalog/product/list/toolbar.phtml Goto: 82 Line or search getOrderUrl($_key, 'asc') ?> from <label><?php echo $this->__('Sort By') ?></label> <select onchange="setLocation(this.value)"> <?php foreach($this->getAvailableOrders() as $_key=>$...


3

After spent some times i found the setting is available in Magento Admin under System-> Configuration-> Advanced-> Developer-> Static Files Settings-> Sign Static Files => Yes. Ref - http://docs.magento.com/m2/ce/user_guide/system/static-file-signature.html http://devdocs.magento.com/guides/v2.0/architecture/view/static-process.html?_ga=2.137738291....


2

load() (or loadByAttribute()) would execute the query already - so you'll have to catch the query before it is executed. As you say, for example by using ->getSelect()->__toString() on your getCollection(). Some references on this topic: https://stackoverflow.com/questions/9840046/magento-how-to-get-sql-query-of-product-load display a sql query being ...


2

It is the same as s=grad-packs. Your URL can be translated into: http://www.mycompany.com/smi1304/catalog/category/view/?s=grad-packs&id=312906. smi1304 = your store view (i assume) catalog = module category = controller view = action All the rest are a key/value couple sequence.


2

I you use form then It will good idea to use Dynamic cart url using function $this->helper('checkout/cart')->getAddUrl($product) in form action use the super attribute as input field. <?php $formKey = Mage::getSingleton('core/session')->getFormKey();?> <form action="<?php echo $this->helper('checkout/cart')->getAddUrl($...


2

You can try with Below code: protected $request; public function __construct( ... \Magento\Framework\App\Request\Http $request, ... ) { $this->request = $request; } $this->request->getParam('your_param'); Hope this help you!


1

Just make your table not TEMPORARY directly in the core (vendor) for testing reasons: \Magento\Framework\DB\Adapter\Pdo\Mysql::createTemporaryTable Near row 2169 just remove the word TEMPORARY. Be aware Magento will create a new table for each request and you will need to remove them manually. Don't forget to revert back your core changes.


1

The url is generated in the file "vendor/magento/framework/URLs.php". Specify where you want to add the parameter. I do not recommend using this file. You need to understand in what context you need to add parameters and make changes to the level above this file. Overriding this file will change all url addresses.


1

Please try this, Add this in your custom controller contructor. public function __construct(Context $context,\Magento\Framework\App\Request\Http $request){ $this->request = $request; parent::__construct($context); } public function getIddata() { // use $this->request->getParams(); // all params return $...


1

It's multi-dimentional array. If you want to access itemID, name etc., then you need to add foreach of $productColllection['items']. Like this below code : foreach ($productCollection['items'] as $product) { //print_r($product->getData()); echo 'Product ID:'.$product->getId(); echo "<br>"; echo 'Product Name:'.$product->getName(); ...


1

Please abandon your current direction for resolution, unless you are certain that something in the core has been modified in the past. The issue is more than likely that you have some settings that require updating. Here are some things you need to check: Contents of .htaccess - Please post the content of your .htaccess, less anything that may contain ...


1

@Mahmood Rehman You can follow the existing thread which discussed about the same cart issue. Adding to Cart programmatically is adding to the wrong Store? Magento how to add product to cart programmatically based on customer id


1

You can use product_list_limit as the query parameter to restrict the results. You can see that's how the toolbar class handles the limit: public function getLimit() { return $this->request->getParam(self::LIMIT_PARAM_NAME); } With: /** * Products per page limit order cookie name */ const LIMIT_PARAM_NAME = 'product_list_limit';


Only top voted, non community-wiki answers of a minimum length are eligible