Post by said2017 » Tue Mar 21, 2017 11:07 pm

السلام عليكم

Image
عندي مشكلة في موقعي وهي عندما اقوم بمشاركة موضوع في الفيسبوك لا يقوم بعرض الصورة
الا مرة واحد فقط واذا اردت المشاركة مرة اخرى لا يعرض الصورة ولا اعرف لماذا
مثال في الموقع التجريبي نفس المشكل
هنا


رابط الموقع التجربي
http://said12.ezyro.com/index.php?route ... duct_id=31

عند الضغط على شير في المرة الاولى سوف تظهر الصورة حتى ولم تقم بمشاركتها واغلقت الصفحة المنبثقة وحاولت مشاركة مرة اخرة لن تظهر الصورة في الفيسبوك

opencart 2.3.0.2

Newbie

Posts

Joined
Sun Jan 29, 2017 9:54 pm

Post by opencartArab » Wed Mar 22, 2017 3:01 am

وعليكم السلام
استخدم الملف المرفق
الملف المرفق هو ملف مضغوط قم بفك الضغط اولا
من لوحة تحكم المتجر اذهب الى الاضافات ثم مثبت الموديولات ثم قم برفع الملف المرفق
ثم اذهب الى الاضافات ثم ادارة التعديلات ثم انقر على زر تحديث

الاضافة تقوم باضافة الميتا الضرورية من فيس بوك لتظهر الصور

Attachments


http://opencartarab.com


Newbie

Posts

Joined
Thu Apr 01, 2010 3:31 am

Post by said2017 » Wed Mar 22, 2017 3:12 am

شكرا لك اخي على الرد لكن المشكل مازال قائم ولم يحل وكذلك ظهر خطأ في الصفحة
Notice: Undefined variable: ogmeta in
template/common/header.tpl on line 112

Newbie

Posts

Joined
Sun Jan 29, 2017 9:54 pm

Post by opencartArab » Wed Mar 22, 2017 3:44 am

تأكد ان الملف التالي هو ملف اصلي لم يتم التعديل عليه للاصدار 2.3
catalog/controller/common/header.php

http://opencartarab.com


Newbie

Posts

Joined
Thu Apr 01, 2010 3:31 am

Post by said2017 » Wed Mar 22, 2017 5:38 am

الملف تم تغييره اخي

Newbie

Posts

Joined
Sun Jan 29, 2017 9:54 pm

Post by opencartArab » Wed Mar 22, 2017 3:05 pm

حاول ترجع للملف الاصلي عشان يشتغل الموديول اللي انا ارسلته لك

http://opencartarab.com


Newbie

Posts

Joined
Thu Apr 01, 2010 3:31 am

Post by said2017 » Wed Mar 22, 2017 8:03 pm

هذا هو الملف اخي لكن لا اعرف ماذا اغير

Code: Select all

<?php
class ControllerCommonHeader extends Controller {
    public function index() {

        // Pavo 2.2 fix
        require_once( DIR_SYSTEM . 'pavothemes/loader.php' );

        $this->load->language('extension/module/themecontrol');
        $data['objlang'] = $this->language;
        $data['objurl'] = $this->url;

        $config = $this->registry->get('config');
        $data['sconfig'] = $config;

        $helper = ThemeControlHelper::getInstance( $this->registry, $config->get('theme_default_directory') );
        $helper->triggerUserParams( array('header_layout','productlayout') );
        $data['helper'] = $helper;

        $themeConfig = (array)$config->get('themecontrol');

        $headerlayout = $helper->getConfig('header_layout','header-v1');
        $data['headerlayout'] = $headerlayout;
        // Pavo 2.2 end fixheader

        // Analytics
        $this->load->model('extension/extension');

        $data['analytics'] = array();

        $analytics = $this->model_extension_extension->getExtensions('analytics');

        foreach ($analytics as $analytic) {
            if ($this->config->get($analytic['code'] . '_status')) {
                $data['analytics'][] = $this->load->controller('analytics/' . $analytic['code'], $this->config->get($analytic['code'] . '_status'));
            }
        }

        if ($this->request->server['HTTPS']) {
            $server = $this->config->get('config_ssl');
        } else {
            $server = $this->config->get('config_url');
        }

        if (is_file(DIR_IMAGE . $this->config->get('config_icon'))) {
            $this->document->addLink($server . 'image/' . $this->config->get('config_icon'), 'icon');
        }

        $data['title'] = $this->document->getTitle();

        $data['base'] = $server;
        $data['description'] = $this->document->getDescription();
        $data['keywords'] = $this->document->getKeywords();
        $data['links'] = $this->document->getLinks();
        $data['styles'] = $this->document->getStyles();
        $data['scripts'] = $this->document->getScripts();
        $data['lang'] = $this->language->get('code');
        $data['direction'] = $this->language->get('direction');

        $data['name'] = $this->config->get('config_name');

        if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) {
            $data['logo'] = $server . 'image/' . $this->config->get('config_logo');
        } else {
            $data['logo'] = '';
        }

        $this->load->language('common/header');

        $data['text_home'] = $this->language->get('text_home');

        // Wishlist
        if ($this->customer->isLogged()) {
            $this->load->model('account/wishlist');

            $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist());
        } else {
            $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0));
        }

        $data['text_shopping_cart'] = $this->language->get('text_shopping_cart');
        $data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', true), $this->customer->getFirstName(), $this->url->link('account/logout', '', true));

        $data['text_account'] = $this->language->get('text_account');
        $data['text_register'] = $this->language->get('text_register');
        $data['text_login'] = $this->language->get('text_login');
        $data['text_order'] = $this->language->get('text_order');
        $data['text_transaction'] = $this->language->get('text_transaction');
        $data['text_download'] = $this->language->get('text_download');
        $data['text_logout'] = $this->language->get('text_logout');
        $data['text_checkout'] = $this->language->get('text_checkout');
        $data['text_category'] = $this->language->get('text_category');
        $data['text_all'] = $this->language->get('text_all');

        $data['home'] = $this->url->link('common/home');
        $data['wishlist'] = $this->url->link('account/wishlist', '', true);
        $data['logged'] = $this->customer->isLogged();
        $data['account'] = $this->url->link('account/account', '', true);
        $data['register'] = $this->url->link('account/register', '', true);
        $data['login'] = $this->url->link('account/login', '', true);
        $data['order'] = $this->url->link('account/order', '', true);
        $data['transaction'] = $this->url->link('account/transaction', '', true);
        $data['download'] = $this->url->link('account/download', '', true);
        $data['logout'] = $this->url->link('account/logout', '', true);
        $data['shopping_cart'] = $this->url->link('checkout/cart');
        $data['checkout'] = $this->url->link('checkout/checkout', '', true);
        $data['contact'] = $this->url->link('information/contact');
        $data['telephone'] = $this->config->get('config_telephone');

        // Menu
        $this->load->model('catalog/category');

        $this->load->model('catalog/product');

        $data['categories'] = array();

        $categories = $this->model_catalog_category->getCategories(0);

        foreach ($categories as $category) {
            if ($category['top']) {
                // Level 2
                $children_data = array();

                $children = $this->model_catalog_category->getCategories($category['category_id']);

                foreach ($children as $child) {
                    $filter_data = array(
                        'filter_category_id'  => $child['category_id'],
                        'filter_sub_category' => true
                    );

                    $children_data[] = array(
                        'name'  => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''),
                        'href'  => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id'])
                    );
                }

                // Level 1
                $data['categories'][] = array(
                    'name'     => $category['name'],
                    'children' => $children_data,
                    'column'   => $category['column'] ? $category['column'] : 1,
                    'href'     => $this->url->link('product/category', 'path=' . $category['category_id'])
                );
            }
        }

        $data['language'] = $this->load->controller('common/language');
        $data['currency'] = $this->load->controller('common/currency');
        $data['search'] = $this->load->controller('common/search');
        $data['cart'] = $this->load->controller('common/cart');

        // For page specific css
        if (isset($this->request->get['route'])) {
            if (isset($this->request->get['product_id'])) {
                $class = '-' . $this->request->get['product_id'];
            } elseif (isset($this->request->get['path'])) {
                $class = '-' . $this->request->get['path'];
            } elseif (isset($this->request->get['manufacturer_id'])) {
                $class = '-' . $this->request->get['manufacturer_id'];
            } elseif (isset($this->request->get['information_id'])) {
                $class = '-' . $this->request->get['information_id'];
            } else {
                $class = '';
            }

            $data['class'] = str_replace('/', '-', $this->request->get['route']) . $class;
        } else {
            $data['class'] = 'common-home';
        }

        if (file_exists(DIR_TEMPLATE . $this->config->get('theme_default_directory') . '/template/common/'.$headerlayout.'.tpl')) {
            $header = $headerlayout;
        } else {
            $header = "header";
        }

        return $this->load->view('common/'.$header, $data);
    }
}

Newbie

Posts

Joined
Sun Jan 29, 2017 9:54 pm

Post by opencartArab » Thu Mar 23, 2017 12:25 am

هذا ملف قالب
راسل صاحب القالب

http://opencartarab.com


Newbie

Posts

Joined
Thu Apr 01, 2010 3:31 am

Post by said2017 » Thu Mar 23, 2017 12:32 am

حسنا شكرا

Newbie

Posts

Joined
Sun Jan 29, 2017 9:54 pm

Post by bahafed » Mon Mar 27, 2017 4:53 am

السلام عليكم
إطلعت عليه يا اخي ويعمل بشكل ممتاز اين المشكل
تحياتي

متجر خدمات اوبن كارت
http://themestar.org


Newbie

Posts

Joined
Tue Feb 21, 2017 6:57 am
Who is online

Users browsing this forum: No registered users and 4 guests