WordPress.org

Ready to get started?Download WordPress

Forums

PrestaShop Integration
[resolved] Header & Footer Style (5 posts)

  1. bsoedargo
    Member
    Posted 1 year ago #

    Hi there,

    first.. this is the most plugin that i've been searching for a long time and you guys did it perfect, even there's a lot of stuff to do more in this plugin that i willing to wait for the next version and all the update "thinks" for this plugin.

    second is little bit of my problem implement it the header and footer of prestashop in wordpress.
    Regarding to the [resolved] in the support in topic header and footer by mystica here , we have to make a 2 new sidebar widget to implement it the header and footer of prestashop, and i did that smoothly without any problem (for now), but the style of prestashop header and footer in wordpress is different, it load only wordpress style, i've import the JS and CSS in Integration setting, any idea how to implement the same style as the prestahop header and footer? So i don't have to make 2 look same style in? or is there something that i missed on the installation and setting the plugin?

    note : i use WP 3.5.1 and PS 1.5.4.1

    Regards

    http://wordpress.org/extend/plugins/prestashop-integration/

  2. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Thanks for your message.

    For implementing 2 new sidebar widget : you can use the complete hook (but only once) or you can use the PrestaShop integration Module widget that allow you to import a module directly (but this module must be enabled in PrestaShop and attached to the hook you use). For integrating a tpl, you can use the products widget, as it allow you to give the module the choice of the .tpl you want (you can create them only for WordPress).

    For customizing WordPress rendering of PrestaShop. Once imported you can update the style.css of your theme (which may be almost empty).

    I hope it will help you make what you want.

    Kind Regards,
    Fran├žois.

  3. bsoedargo
    Member
    Posted 1 year ago #

    Hi Aytechnet,

    this is awesome, actualy here's what i've been doing after i post this topic, i dont know this is the right way to do it or not, but so far, it run smoothly implementing prestashop header and footer.

    1. In function.php i comment the wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); it's to take the wordpress style completely blank. so i can use the 1 css to edit the whole site using presta global.css

    2. The problem is the js from prestashop header in wordpress didn't running well, Then i put <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> in wordpress themes header, the header is running smoothly.

    i don't know if this the right thing to do to implement the header and footer prestashop in wordpress (using sidebar widget and place it in header), but so far, it's running well, i think i've done complete my 1st phase, going further now, i'll mark this as resolved.

    very helpful plugin & support ...

    Regards

  4. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Hi bsoedargo,

    1. In function.php i comment the wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); it's to take the wordpress style completely blank. so i can use the 1 css to edit the whole site using presta global.css

    This is like starting from a blank WordPress theme, but if you need to update the CSS you will have some problems : this is often easier to start a blank theme, check the codex : http://codex.wordpress.org/Theme_Development

    2. The problem is the js from prestashop header in wordpress didn't running well, Then i put <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> in wordpress themes header, the header is running smoothly.

    It is the general problem between WordPress which use a bleding edge Jquery without conflict and PrestaShop which use older Jquery with possible conflict. You may need to add something like this in the init action of your theme :

    if ( !is_admin() ) {
                    wp_deregister_script( 'jquery' );
                    wp_register_script( 'jquery', '/js/jquery/jquery.min.js', array(), '2.7.2' );
                    wp_enqueue_script( 'jquery' );
            }

    Check what you need, if jquery is already imported from PrestaShop code, you may need to keep only the wp_deregister_script call.

    Hope this will help you.

    Kind Regards,
    Fran├žois.

  5. bsoedargo
    Member
    Posted 1 year ago #

    This is like starting from a blank WordPress theme, but if you need to update the CSS you will have some problems : this is often easier to start a blank theme, check the codex : http://codex.wordpress.org/Theme_Development

    Yes, i did use a blank theme now, thanks for the advices now the look of header is from presta.

    For number 2, i try to add deregister_script and it's not running well, suddenly become blank on all of the site, so i keep in my way by putting jquery-min 1.7.2 on my header.php themes (i still can't figure out any other way and the affect by doing this in the future, but i guest it's the right way and it's running well just like what i want ^_^ for now). Thank you again for reply-ing and your advice.

    Salute.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.