Existing websites - customising your embeds

Updated on 04th April 2022 in Existing Websites

See here for our guide to embedding on an existing website.

Shoprocket offers total control over the appearance of your code embeds via the code generator in your dashboard.

Select which embed type you'd like (single Product widget, full-page Product, multiple Products, or shopping cart) and then enable/disable the elements you'd like to include, as well as customise the sizes, styles & behaviours.

Once you have made changes to your embed code, you will need to copy & paste it into your website where you'd like it to appear. (if you make future changes, you will need to copy & paste the code again)

You can also click "Save as default settings" in the left-hand menu to store your embed settings so that all future embed codes you generate will start with the same settings.

1650432081039.png

Options

The following options are available from the "Options" section in the left-hand menu:

  1. Products to display - Choose to show all Products or only Products from specific categories
  2. Product size - Set the display size of the embedded items (small, medium or large)
  3. Image fit - Define whether the Product images should be cropped to the available size, or scaled-down (cropped will keep all images the same size and more uniform)
  4. Button style - choose between "Standard" (rectangular buttons with text) "Minimal" (circle buttons with icons) or "On Hover" (circle buttons with icons that only appear when hovering over the Product)
  5. Default Sorting Order - Define the sort order that Products will be listed by default (Default, Newest First, Name: A-Z, Name: Z-A, Price: Low-High, Price: High-Low)
  6. Products per page - Specify how many Products to load into the view
  7. Hide out of stock Products - Choose whether or not to completely hide Products that are out of stock, or show them with an "Out of stock" message

Includes

You can also specify which elements to include, such as the "View Product" button, and the "Ribbons"

The following includes are available from the "Includes" section in the left-hand menu:

  1. Search box - Displays the "search" field above your Products embed (only available on multiple Products embed)
  2. Sort box - Displays the sort order dropdown menu (only available on multiple Products embed)
  3. Limiter per page box - Displays the items per page dropdown menu (only available on multiple Products embed)
  4. Currency box - Displays the currency dropdown for customers to view prices in their preferred currency (currencies must be enabled first in your store settings)
  5. Language box - Displays the language dropdown for customers to switch languages (Store texts must be set up first in your settings)
  6. Category box - Displays the category dropdown, allowing customers to filter Products by category (only available on multiple Products embed)
  7. Product name - Displays the Product name
  8. Product price - Displays the Product price
  9. Product image - Displays the Product hero image
  10. Product summary - Displays the Product summary text
  11. View Product button - Displays the button to open the full Product details in a modal
  12. Add to cart button - Displays the button to add the item to the cart (options will appear above on hover, Products that require more advanced options/variations will open the view product modal on click)
  13. Min/max order quantity - Displays the minimum & maximum order quantities available, if set in your Product
  14. Free shipping ribbon - Displays the "Free Shipping" ribbon on your Product if free shipping is applicable
  15. New Product ribbon - Displays the "New" ribbon on Products added within the last 20 days
  16. Digital download ribbon - Displays the "Digital Download" ribbon on Products that include a downloadable file on purchase

View Product Popup

For Products that have the "view Product" option enabled, you can customise which of the following elements to display in the modal:

  1. Product name - Displays the Product name
  2. Product price - Displays the Product price
  3. Quantity select - Displays the quantity select field (if disabled, only 1 can be added to the cart at a time)
  4. Product image - Displays the Product image gallery
  5. Image thumbnails - Displays the image gallery thumbnails
  6. Product reviews - Displays the Product reviews
  7. Product summary - Displays the Product summary text
  8. Product description - Displays the Product description
  9. Product SKU - Displays the Product stock-keeping unit (SKU)
  10. Product categories - Displays the Products linked categories
  11. Social sharing icons - Displays buttons allowing for 1 click share of the Product to social media channels
  12. Related Products - Displays the related Products
  13. Min/max order quantity - Displays the minimum & maximum order quantities available, if set in your Product

You can also choose from the following options:

  1. Image fit - Define whether the Product images should be cropped to the available size, or scaled-down (cropped will keep all images the same size and more uniform)
  2. Image width - Set the width of the images
  3. Image height - Set the height of the images
  4. Thumbnail layout - Position the image gallery thumbnails horizontally below the image gallery, or vertically to the left
  5. Variation style - Choose between standard "dropdown" menus to choose from or "plain" text menus
    (in redevelopment)

Styles

You can customise the following colours via the generator:

  • Product title
  • Product price
  • Product summary
  • Buy button background
  • Buy button text/icon
  • View Product button background
  • View button text/icon
  • View cart button background
  • View cart button text
  • Basket widget colour
  • Basket background
  • Basket text colour
  • Product item background

For those with coding skills, you can of course use your own CSS rules to style the embeds as much as you like, we don't use iFrames so all of the content rendered into your page is part of the DOM and can be styled with your own CSS.

Just make sure that your CSS rules are more specific than ours.

For example, we have this rule:


.sr-filters-wrap {
   background: #fff;
}

to override that, create your own CSS rule with a parent element prepended, such as:

body .sr-filters-wrap { 
   background: #000; 
}

Because you added the "body" elements before our rule, it will be more targeted than ours, and take priority. 

You can also make changes directly in the code embed generator if you're more comfortable with that.

Can’t find what you’re looking for?

Chat with us 👋

or contact us on [email protected]


as featured in