Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to copy a block


Jack_mcs

Recommended Posts

I want to copy the whole footer block of one theme and insert it into another. I clickrd the export block in the source theme and file was created. But when I try to import it into the new theme, the whole bottom section of the theme disappears. What is the correct way to do this?

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

On 10/3/2023 at 7:22 PM, Jack_mcs said:

I want to copy the whole footer block of one theme and insert it into another. I clickrd the export block in the source theme and file was created. But when I try to import it into the new theme, the whole bottom section of the theme disappears. What is the correct way to do this?

How did you do that?

Try the following steps:

1. Switch to Expert mode:

image.png.a5ac913bc05d3520656c8f6b48db24c5.png

2. Open the source theme (Watch in my case) and export footer block:

image.png.7dcb8bb333df1f907b58da5430a4c663.png

 

image.png.ee820229995a4f6d4a08ec30d42da460.png

The footer will be downloaded:

image.png.b72c75a37bbe91b3c07063cf38f8d42e.png

3. Open destination theme (I opened the Printshop theme) and delete all nested blocks in the footer:

image.png.3f66e86f54a2ee8d7e277d82be12930f.png

4. Click Add Widget button and search "import". Then click Import Block widget:

image.png.bd898d8bb3ac1691c69d2796dddca59b.png

The empty widget will be added into the footer:

image.png.e59b9913fb99a2ae3466ddded0df3ff4.png

5. Click on the highlighted rectangle and select the downloaded footer. Here is the result:

image.png.a1a3031b546d6bef326efb96f03b220a.png

Link to comment
Share on other sites

@pandreiThank you for the detailed instructions. I tried it but when I import the block the original footer is restored. The attached footeer_block image shows the template before choosing the saved block. When it didn't work, I created a new template to view the saved file and the other image shows it was saved correctly.  So the import is failing somehow. Any thoughts on what I am missing?

v4_footer_block.jpg

v4_saved_footer.jpg

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

19 hours ago, Jack_mcs said:

Thank you for the detailed instructions. I tried it but when I import the block the original footer is restored. The attached footeer_block image shows the template before choosing the saved block. When it didn't work, I created a new template to view the saved file and the other image shows it was saved correctly.  So the import is failing somehow. Any thoughts on what I am missing?

Try to save theme after this step:

On 10/7/2023 at 11:17 AM, pandrei said:

3. Open destination theme (I opened the Printshop theme) and delete all nested blocks in the footer:

image.png.3f66e86f54a2ee8d7e277d82be12930f.png

 

Link to comment
Share on other sites

On 10/10/2023 at 5:32 AM, pandrei said:

Try to save theme after this step:

Same thing. When I load the saved block, the template updates and shows the original footer items, not the inserted block. I created a new footer block and imported the saved block into it. The V4_footer_new image shows the result, which is the original format. I then created a new theme, added a footer block and imported the same file. The V4_footer_tmp shows that one. Any other suggestions?

 

v4_footer_new.jpg

V4_footer_tmp.jpg

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...