• 27-12-2016, 17:59:47
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Merhaba Arkadaşlar,

    Aşağıda bulunan kodu AMP Olarak VQMOD ile eklediğimde çok garip bir sayfaya yönlendirme yapıyor ve o sayfada bulunamıyor bunu nasıl düzenleyebilirim?

    KOD:
    <?xml version="1.0" encoding="UTF-8"?>
    <modification>
    	<name>AMP for Product Page</name>
    	<version>1.0</version>
    	<author>yura dee</author> 
    	<file path="catalog/controller/product/product.php">
    		<operation>
    			<search position="after"><![CDATA[$this->document->addLink($this->url->link('product_id', 'product_id=' . $this->request->get['product_id']), 'canonical');]]></search>
    			<add><![CDATA[$this->document->addLink($this->url->link('product/amp_product', 'product_id' . $this->request->get['product_id']), 'amphtml');
    			]]></add>
    		</operation>
    		 
    	</file>
    </modification>
    Yönlendirdiği Sayfa
    https://www.bambaskaorganizasyon.com/index.php?route=product/product&path=18_77&amp;product_id=307

    Benim istediğim linkleme yapısı ise ;
    https://www.bambaskaorganizasyon.com/balance-kiralama-fiyatlari.html
  • 27-12-2016, 18:30:55
    #2
    catalog/controller/product/product.php



    $this->document->addLink($this->url->link('product_id', 'product_id=' . $this->request->get['product_id']), 'canonical');

    üstteki satırın altına aşağıdaki kodu ekle.

    $this->document->addLink($this->url->link('product/amp_product', 'product_id' . $this->request->get['product_id']), 'amphtml');

    ben kullanıyorum hatta seo linklerini dahi yaptım.