How to properly add a Commerce Shipping Service option via AJAX during checkout

How to properly add a Commerce Shipping Service option via AJAX during checkout

I have the Payment and Shipping service block in the same checkout pane. I update the Shipping service block with AJAX when selecting a Payment method, as available Shipping services depend on the selected Payment method. But once the Shipping service block is... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

db_update query does not work properly

I work with views bulk operations and I wanna change status of selected items in a view. I applied db_update query, but something went wrong. I was debugging my code following: $status=$context[‘status’]; foreach($context[‘rows’] as $order) {... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

Image Styles not creating on one custom style only

I’ve run into this issue where we have created a custom style (emailthumb) which is to be used when sending out email newsletters via simplenews. The thumbnail is based on ‘thumbnail’ style but is slightly bigger. It works fine when the image is... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

Send an email when the roles are changed

I’m trying to send an email to users after their role has changed. So far, the rule is triggered every time the profile is saved (even without role change); I suspect that the data comparison is not handling the array correctly?! Any help to improve the... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

How to display an overlay image in modal window (Colorbox) upon hover

I have a series of images set up to display in modal lightbox-type windows – specifically, using the Colorbox module. The goal is for each image to be paired with a companion graphic overlay which is displayed upon hover over the Colorbox display. Think of it as (1)... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

Custom field "required" validation

I built a custom field type using the Field API. In hook_field_validate I have some logic to validate some very custom stuff, but when I tried to add a “This field is required” validation, I realized this hook runs on the from that you fill when... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

content type field not printing

In drupal 7, I defined a field for a custom content type and am trying to display its value via page.tpl.php. Nothing is appearing in the rendered page. Here’s the relevant piece of page.tpl.php. The field is ‘field_mast”. Note that I added print... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

How can I get the translated path to the current node?

How to get path to current node but of another language? Available languages: English (URL prefix: en) Polish (default, no URL prefix) Enabled detection methods: URL (by prefix) Session (parameter: language) Browser Default I created translation of taxonomy and... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

Add class in sub menu

I am trying to convert html to Drupal 7 theme. function theme_menu_tree($variables){ return ‘<ul class=”my-class-1″>’ . $variables[‘tree’] . ‘</ul>’; } simply returns the entire menu how to make it like... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

Can’t get Ajax data sent to my PHP function

I recently took over an existing Drupal project and I tried to add a new PHP function (which works regularly) and link it with an Ajax query. There were already some in place that worked, and I wanted to add one that when you press a link, it sends the ID in the link... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

Hide a view tab if it has no results

I have a view which has 5 menu tabs. I want to hide the tab if it doesn’t have any results. Can anyone please help me with the suggestions. read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

How do I use print to generate a PDF of all entities referencing a specific node?

I’m trying to use the Print module to generate pdf’s and epubs of the stories on my site. However, I need to get Print to generate these files from the story page and then generate the pdf with ALL nodes that reference the story, the chapters. I’m... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

How can I redirect users on login based on their chosen language?

I’m looking to redirect users after they login. The site is multilingual, using English and French. I’ve tried using the Login Destination module and using Rules, but it has no options for accessing the language the user has chosen. On the user edit page,... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

How can I apply different templates based on taxonomy hierarchy?

I’m new to Drupal and I don’t have extensive knowledge so I’m hoping I can get this question answered. I want the taxonomy pages of lower hierarchy to be displayed differently from the higher by applying a different tmeplate. Is there a way in Drupal... read more
How do I use API versioning?

How do I use API versioning?

I’m using the Services module to produce a REST API. According to the official documentation, there is a way to version services resources. I believe version here means supplying a single API (e.g. example.com/api) and allowing clients to specify which version... read more
View not displayed for other roles

View not displayed for other roles

I have a block view that displays own articles created (this view is inside a panel page). But this view didn’t displayed for other users except administrators, or when I check the permission ‘Bypass content access control’ to the other roles. You... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

Passing arguments to a node with an alias url

There is a similar issue in here: Passing an argument to a node causes 404 But there is no real viable solution. I tried using the sub-pathauto module but the restiction of 8 arguments is too little, since the urls will look something like this:... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

403 Error on AJAX Request in add new item (collection field)

I have normal content type which has 12 collection fields each field has unlimited value when i try to click add new item on any field it gives me ajax error An AJAX HTTP error occurred. HTTP Result Code: 403 Debugging information follows. Path: /?q=system/ajax... read more
Unable to display images after Drupal Update

Unable to display images after Drupal Update

I recently updated my site to Drupal 7.34 using these instructions – https://www.youtube.com/watch?v=_uDTyzE47pQ After update, I am not able to see the images in the site. All I see is the placeholder for image, but not the image itself. I checked and its not a... read more
How to properly add a Commerce Shipping Service option via AJAX during checkout

How to Center Image in View Slideshow

I can’t get the views slideshow to center in the div. I tried the following code but with issue: #views_slideshow_cycle_main_content_slideshow-block { width: 100%; text-align: center; } #views_slideshow_cycle_teaser_section_content_slideshow-block { display:... read more